bayard 2004/01/02 00:06:57 Modified: io/src/test/org/apache/commons/io/input SwappedDataInputStreamTest.java Log: readLine 'test' for UnsupportedException added Revision Changes Path 1.6 +9 -6 jakarta-commons-sandbox/io/src/test/org/apache/commons/io/input/SwappedDataInputStreamTest.java Index: SwappedDataInputStreamTest.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/io/src/test/org/apache/commons/io/input/SwappedDataInputStreamTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- SwappedDataInputStreamTest.java 2 Jan 2004 08:04:09 -0000 1.5 +++ SwappedDataInputStreamTest.java 2 Jan 2004 08:06:57 -0000 1.6 @@ -133,10 +133,13 @@ assertEquals( (int) 0x04030201, this.sdis.readInt() ); } - /* public void testReadLine() throws IOException { + try { + String unexpected = this.sdis.readLine(); + fail("readLine should be unsupported. "); + } catch(UnsupportedOperationException uoe) { + } } - */ public void testReadLong() throws IOException { assertEquals( 0x0807060504030201L, this.sdis.readLong() );
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]