commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1403160 - in /commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2: provider/http/test/ provider/https/test/ provider/local/test/ test/
Date Mon, 29 Oct 2012 03:54:55 GMT
Author: ggregory
Date: Mon Oct 29 03:54:54 2012
New Revision: 1403160

URL: http://svn.apache.org/viewvc?rev=1403160&view=rev
Log:
Checkstyle: Line has trailing spaces.

Modified:
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/GetContentInfoFunctionalTest.java
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpFilesCacheTestCase.java
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpProviderTestCase.java
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/https/test/GetContentInfoFunctionalTest.java
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/local/test/LocalProviderTestCase.java
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderReadTests.java
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/GetContentInfoFunctionalTest.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/GetContentInfoFunctionalTest.java?rev=1403160&r1=1403159&r2=1403160&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/GetContentInfoFunctionalTest.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/GetContentInfoFunctionalTest.java
Mon Oct 29 03:54:54 2012
@@ -10,7 +10,7 @@ import org.junit.Test;
 
 /**
  * Tests VFS-427 NPE on HttpFileObject.getContent().getContentInfo()
- * 
+ *
  * @since 2.1
  */
 public class GetContentInfoFunctionalTest
@@ -18,7 +18,7 @@ public class GetContentInfoFunctionalTes
 
     /**
      * Tests VFS-427 NPE on HttpFileObject.getContent().getContentInfo().
-     * 
+     *
      * @throws FileSystemException
      *             thrown when the getContentInfo API fails.
      */

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpFilesCacheTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpFilesCacheTestCase.java?rev=1403160&r1=1403159&r2=1403160&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpFilesCacheTestCase.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpFilesCacheTestCase.java
Mon Oct 29 03:54:54 2012
@@ -27,7 +27,7 @@ import org.junit.Test;
 
 /**
  * Tests https://issues.apache.org/jira/browse/VFS-426
- * 
+ *
  * @version $Id$
  * @since 2.1
  */

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpProviderTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpProviderTestCase.java?rev=1403160&r1=1403159&r2=1403160&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpProviderTestCase.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpProviderTestCase.java
Mon Oct 29 03:54:54 2012
@@ -38,7 +38,7 @@ import org.apache.commons.vfs2.util.NHtt
 
 /**
  * Test cases for the HTTP provider.
- * 
+ *
  */
 public class HttpProviderTestCase extends AbstractProviderTestConfig
 {
@@ -60,7 +60,7 @@ public class HttpProviderTestCase extend
 
     /**
      * Creates and starts an embedded Apache HTTP Server (HttpComponents).
-     * 
+     *
      * @throws Exception
      */
     private static void setUpClass() throws Exception
@@ -74,7 +74,7 @@ public class HttpProviderTestCase extend
 
     /**
      * Creates a new test suite.
-     * 
+     *
      * @return a new test suite.
      * @throws Exception
      *             Thrown when the suite cannot be constructed.
@@ -114,7 +114,7 @@ public class HttpProviderTestCase extend
 
     /**
      * Stops the embedded Apache HTTP Server.
-     * 
+     *
      * @throws IOException
      */
     private static void tearDownClass() throws IOException
@@ -127,7 +127,7 @@ public class HttpProviderTestCase extend
 
     /**
      * Builds a new test case.
-     * 
+     *
      * @throws IOException
      *             Thrown if a free local socket port cannot be found.
      */

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/https/test/GetContentInfoFunctionalTest.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/https/test/GetContentInfoFunctionalTest.java?rev=1403160&r1=1403159&r2=1403160&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/https/test/GetContentInfoFunctionalTest.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/https/test/GetContentInfoFunctionalTest.java
Mon Oct 29 03:54:54 2012
@@ -10,7 +10,7 @@ import org.junit.Test;
 
 /**
  * Tests VFS-427 NPE on HttpFileObject.getContent().getContentInfo()
- * 
+ *
  * @since 2.1
  */
 public class GetContentInfoFunctionalTest
@@ -18,7 +18,7 @@ public class GetContentInfoFunctionalTes
 
     /**
      * Tests VFS-427 NPE on HttpFileObject.getContent().getContentInfo().
-     * 
+     *
      * @throws FileSystemException
      *             thrown when the getContentInfo API fails.
      */

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/local/test/LocalProviderTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/local/test/LocalProviderTestCase.java?rev=1403160&r1=1403159&r2=1403160&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/local/test/LocalProviderTestCase.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/local/test/LocalProviderTestCase.java
Mon Oct 29 03:54:54 2012
@@ -41,7 +41,7 @@ public class LocalProviderTestCase
     public static Test suite() throws Exception
     {
         final ProviderTestSuite testSuite = new ProviderTestSuite(new LocalProviderTestCase());
-        
+
         testSuite.addTests(FileNameTests.class);
         // VFS-325
         testSuite.addTests(UrlTests.class);

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderReadTests.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderReadTests.java?rev=1403160&r1=1403159&r2=1403160&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderReadTests.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderReadTests.java
Mon Oct 29 03:54:54 2012
@@ -39,10 +39,10 @@ import org.apache.commons.vfs2.FileType;
  */
 public class ProviderReadTests extends AbstractProviderTestCase
 {
-    
+
     /**
-     * Returns the read folder named "dir1". 
-     * 
+     * Returns the read folder named "dir1".
+     *
      * @return the read folder named "dir1".
      * @throws FileSystemException
      */
@@ -50,7 +50,7 @@ public class ProviderReadTests extends A
     {
         return getReadFolder().resolveFile("dir1");
     }
-    
+
     /**
      * Returns the capabilities required by the tests of this test case.
      */
@@ -103,14 +103,14 @@ public class ProviderReadTests extends A
             int length = children.length;
             if (info.children.size() != children.length)
             {
-                for (int i = 0; i < children.length; ++i)
+                for (FileObject element : children)
                 {
-                    if (children[i].getName().getBaseName().startsWith("."))
+                    if (element.getName().getBaseName().startsWith("."))
                     {
                         --length;
                         continue;
                     }
-                    System.out.println(children[i].getName());
+                    System.out.println(element.getName());
                 }
             }
 
@@ -228,7 +228,7 @@ public class ProviderReadTests extends A
     /**
      * Tests that test read folder is not hidden.
      */
-    public void testFolderIsHidden() throws Exception    
+    public void testFolderIsHidden() throws Exception
     {
         FileObject folder = getReadFolderDir1();
         Assert.assertFalse(folder.isHidden());
@@ -237,12 +237,12 @@ public class ProviderReadTests extends A
     /**
      * Tests that test read folder is readable.
      */
-    public void testFolderIsReadable() throws Exception    
+    public void testFolderIsReadable() throws Exception
     {
         FileObject folder = getReadFolderDir1();
         Assert.assertTrue(folder.isReadable());
     }
-    
+
     public void testGetContent() throws Exception
     {
         final FileObject file = resolveFile1Txt();
@@ -260,12 +260,12 @@ public class ProviderReadTests extends A
         final FileContentInfo contentInfo = content.getContentInfo();
         assertNotNull(contentInfo);
     }
-    
+
     private FileObject resolveFile1Txt() throws FileSystemException
     {
         return getReadFolder().resolveFile("file1.txt");
     }
-    
+
     /**
      * Tests can perform operations on a folder while reading from a different files.
      */

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java?rev=1403160&r1=1403159&r2=1403160&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
Mon Oct 29 03:54:54 2012
@@ -39,12 +39,12 @@ import org.apache.commons.vfs2.Selectors
 public class ProviderWriteTests
     extends AbstractProviderTestCase
 {
-    
+
     protected FileObject getReadFolderDir1() throws FileSystemException
     {
         return getReadFolder().resolveFile("dir1");
     }
-    
+
     /**
      * Returns the capabilities required by the tests of this test case.
      */
@@ -497,7 +497,7 @@ public class ProviderWriteTests
     /**
      * Tests that test read folder is not hidden.
      */
-    public void testFolderIsHidden() throws Exception    
+    public void testFolderIsHidden() throws Exception
     {
         FileObject folder = getReadFolderDir1();
         Assert.assertFalse(folder.isHidden());
@@ -506,7 +506,7 @@ public class ProviderWriteTests
     /**
      * Tests that test read folder is readable.
      */
-    public void testFolderIsReadable() throws Exception    
+    public void testFolderIsReadable() throws Exception
     {
         FileObject folder = getReadFolderDir1();
         Assert.assertTrue(folder.isReadable());
@@ -515,12 +515,12 @@ public class ProviderWriteTests
     /**
      * Tests that test folder iswritable.
      */
-    public void testFolderIsWritable() throws Exception    
+    public void testFolderIsWritable() throws Exception
     {
         FileObject folder = getWriteFolder().resolveFile("dir1");
         Assert.assertTrue(folder.isWriteable());
     }
-    
+
     /**
      * Test that children are handled correctly by create and delete.
      */



Mime
View raw message