You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2004/04/16 04:08:00 UTC

cvs commit: jakarta-commons/net/src/test/org/apache/commons/net/ftp/parser NTFTPEntryParserTest.java

scohen      2004/04/15 19:08:00

  Modified:    net/src/test/org/apache/commons/net/ftp/parser
                        NTFTPEntryParserTest.java
  Log:
  added test code to test problem in bug 28406
  PR: 28406
  
  Revision  Changes    Path
  1.11      +10 -2     jakarta-commons/net/src/test/org/apache/commons/net/ftp/parser/NTFTPEntryParserTest.java
  
  Index: NTFTPEntryParserTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/test/org/apache/commons/net/ftp/parser/NTFTPEntryParserTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- NTFTPEntryParserTest.java	16 Apr 2004 01:52:24 -0000	1.10
  +++ NTFTPEntryParserTest.java	16 Apr 2004 02:08:00 -0000	1.11
  @@ -131,7 +131,15 @@
           assertTrue("Should have been a directory.", 
                      dir.isDirectory());
           assertEquals("absoft2", dir.getName());
  -        assertEquals(0, dir.getSize());       
  +        assertEquals(0, dir.getSize());
  +        
  +        dir = getParser().parseFTPEntry("12-03-96  06:38AM       <DIR>          123456");
  +        assertNotNull("Could not parse entry.", dir);
  +        assertTrue("Should have been a directory.", 
  +        		dir.isDirectory());
  +        assertEquals("123456", dir.getName());
  +        assertEquals(0, dir.getSize());
  +        
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org