commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1189769 - /commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileExtensionSelectorTest.java
Date Thu, 27 Oct 2011 14:14:34 GMT
Author: ggregory
Date: Thu Oct 27 14:14:34 2011
New Revision: 1189769

URL: http://svn.apache.org/viewvc?rev=1189769&view=rev
Log:
Don't qualify static with class (code style).

Modified:
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileExtensionSelectorTest.java

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileExtensionSelectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileExtensionSelectorTest.java?rev=1189769&r1=1189768&r2=1189769&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileExtensionSelectorTest.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/FileExtensionSelectorTest.java
Thu Oct 27 14:14:34 2011
@@ -81,7 +81,7 @@ public class FileExtensionSelectorTest
     public void testEmpty() throws Exception
     {
         FileSelector selector0 = new FileExtensionSelector();
-        FileObject[] foList = FileExtensionSelectorTest.BaseFolder.findFiles(selector0);
+        FileObject[] foList = BaseFolder.findFiles(selector0);
         Assert.assertEquals(0, foList.length);
     }
 
@@ -93,7 +93,7 @@ public class FileExtensionSelectorTest
     @Test
     public void testManyExtensions() throws Exception
     {
-        FileObject[] foList = FileExtensionSelectorTest.BaseFolder.findFiles(Selectors.SELECT_FILES);
+        FileObject[] foList = BaseFolder.findFiles(Selectors.SELECT_FILES);
         Assert.assertTrue(foList.length > 0);
         // gather file extensions.
         Set<String> extensionSet = new HashSet<String>();
@@ -105,7 +105,7 @@ public class FileExtensionSelectorTest
         Assert.assertEquals(ExtensionCount, extensionSet.size());
         // check all unique extensions
         FileSelector selector = new FileExtensionSelector(extensionSet);
-        FileObject[] list = FileExtensionSelectorTest.BaseFolder.findFiles(selector);
+        FileObject[] list = BaseFolder.findFiles(selector);
         Assert.assertEquals(FileCount, list.length);
     }
 
@@ -118,7 +118,7 @@ public class FileExtensionSelectorTest
     public void testNullCollection() throws Exception
     {
         FileSelector selector0 = new FileExtensionSelector((Collection<String>) null);
-        FileObject[] foList = FileExtensionSelectorTest.BaseFolder.findFiles(selector0);
+        FileObject[] foList = BaseFolder.findFiles(selector0);
         Assert.assertEquals(0, foList.length);
     }
 
@@ -131,7 +131,7 @@ public class FileExtensionSelectorTest
     public void testNullString() throws Exception
     {
         FileSelector selector0 = new FileExtensionSelector((String) null);
-        FileObject[] foList = FileExtensionSelectorTest.BaseFolder.findFiles(selector0);
+        FileObject[] foList = BaseFolder.findFiles(selector0);
         Assert.assertEquals(0, foList.length);
     }
 
@@ -143,7 +143,7 @@ public class FileExtensionSelectorTest
     @Test
     public void testOneExtension() throws Exception
     {
-        FileObject[] foList = FileExtensionSelectorTest.BaseFolder.findFiles(Selectors.SELECT_FILES);
+        FileObject[] foList = BaseFolder.findFiles(Selectors.SELECT_FILES);
         Assert.assertTrue(foList.length > 0);
         // gather file extensions.
         Set<String> extensionSet = new HashSet<String>();
@@ -156,14 +156,14 @@ public class FileExtensionSelectorTest
         for (String extension : extensionSet)
         {
             FileSelector selector = new FileExtensionSelector(extension);
-            FileObject[] list = FileExtensionSelectorTest.BaseFolder.findFiles(selector);
+            FileObject[] list = BaseFolder.findFiles(selector);
             Assert.assertEquals(FilePerExtensionCount, list.length);
         }
         // check each file against itself
         for (FileObject fo : foList)
         {
             FileSelector selector = new FileExtensionSelector(fo.getName().getExtension());
-            FileObject[] list = FileExtensionSelectorTest.BaseFolder.findFiles(selector);
+            FileObject[] list = BaseFolder.findFiles(selector);
             Assert.assertEquals(FilePerExtensionCount, list.length);
         }
     }



Mime
View raw message