This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/trunk by this push:
     new d591c90  Don't use deprecated JUnit methods.
d591c90 is described below

commit d591c9046e200fd5b688c7e2ab5a5cd7ddbf3970
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jan 30 11:44:35 2019 -0500

    Don't use deprecated JUnit methods.
---
 .../test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java
index 8241c7b..f3f2e84 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java
@@ -168,8 +168,8 @@ public abstract class AbstractTestSuite extends TestSetup {
         writeFolder = baseFolder.resolveFile("write-tests");
 
         // Make some assumptions about the read folder
-        assertTrue("Folder does not exist: " + readFolder, 
readFolder.exists());
-        assertFalse(readFolder.getName().getPath().equals(FileName.ROOT_PATH));
+        Assert.assertTrue("Folder does not exist: " + readFolder, 
readFolder.exists());
+        
Assert.assertFalse(readFolder.getName().getPath().equals(FileName.ROOT_PATH));
 
         // Configure the tests
         final Enumeration<Test> tests = testSuite.tests();
@@ -234,7 +234,7 @@ public abstract class AbstractTestSuite extends TestSetup {
      */
     private void checkTempDir(final String assertMsg) {
         if (tempDir.exists()) {
-            assertTrue(assertMsg + " (" + tempDir.getAbsolutePath() + ")",
+            Assert.assertTrue(assertMsg + " (" + tempDir.getAbsolutePath() + 
")",
                     tempDir.isDirectory() && tempDir.list().length == 0);
         }
     }

Reply via email to