garydgregory commented on a change in pull request #68: VFS-724: fixed bug in 
case of no content-length
URL: https://github.com/apache/commons-vfs/pull/68#discussion_r312655320
 
 

 ##########
 File path: 
commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http4/test/Http4GetContentInfoTest.java
 ##########
 @@ -56,4 +59,13 @@ public void testGetContentInfo() throws FileSystemException 
{
         // Used to NPE before fix:
         content.getContentInfo();
     }
+
+
+    @Test
+    public void testGetZeroContents() throws IOException {
+        final FileSystemManager fsManager = VFS.getManager();
+        final FileObject fo = 
fsManager.resolveFile("http4://monpremierlivre.home.blog/");
 
 Review comment:
   I think you will want to use Mockito here instead of depending on a random 
third party web site -- random from Apache's POV ;-)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to