You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by gl...@apache.org on 2004/08/10 04:59:52 UTC

cvs commit: jakarta-poi/src/testcases/org/apache/poi/util TestHexDump.java

glens       2004/08/09 19:59:52

  Modified:    src/testcases/org/apache/poi/util TestHexDump.java
  Log:
  Empty byte array case for HexDump
  
  Revision  Changes    Path
  1.6       +5 -0      jakarta-poi/src/testcases/org/apache/poi/util/TestHexDump.java
  
  Index: TestHexDump.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/util/TestHexDump.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestHexDump.java	12 Apr 2004 02:25:15 -0000	1.5
  +++ TestHexDump.java	10 Aug 2004 02:59:52 -0000	1.6
  @@ -277,6 +277,11 @@
   
               // as expected
           }
  +
  +        // verify proper behaviour with empty byte array
  +        ByteArrayOutputStream os = new ByteArrayOutputStream( );
  +        HexDump.dump( new byte[0], 0, os, 0 );
  +        assertEquals( "No Data", os.toString() );
       }
   
       public void testToHex()
  
  
  

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