@@ -17,7 +17,7 @@ public class TestUncompressInputStream {
1717 * </code>
1818 * The original compress_test.txt contains text {@value #TEXT_IN_FILE}
1919 */
20- private static final String TEST_FILE = "org/biojava/nbio/core/util/compress_test.txt.lzc " ;
20+ private static final String TEST_FILE = "org/biojava/nbio/core/util/compress_test.txt.Z " ;
2121 private static final String TEXT_IN_FILE = "Test of biojava uncompress.\n " ;
2222
2323 private static final String BIGGER_TEST_FILE = "org/biojava/nbio/core/util/build-copy.xml.Z" ;
@@ -37,16 +37,16 @@ public void testUncompression() throws Exception {
3737 baos = new ByteArrayOutputStream ();
3838 UncompressInputStream .uncompress (is , baos );
3939
40- ByteArrayOutputStream obaos = new ByteArrayOutputStream ();
41- try (BufferedInputStream oin = new BufferedInputStream (
42- this .getClass ().getClassLoader ()
43- .getResourceAsStream (ORIG_OF_BIGGER_TEST_FILE ));) {
44- byte [] buf = new byte [100000 ];
45- int len ;
46- while ((len = oin .read (buf )) >= 0 )
47- obaos .write (buf , 0 , len );
48- }
49-
50- Assert .assertArrayEquals (baos .toByteArray (), obaos .toByteArray ());
40+ ByteArrayOutputStream obaos = new ByteArrayOutputStream ();
41+ try (BufferedInputStream oin = new BufferedInputStream (
42+ this .getClass ().getClassLoader ()
43+ .getResourceAsStream (ORIG_OF_BIGGER_TEST_FILE ));) {
44+ byte [] buf = new byte [100000 ];
45+ int len ;
46+ while ((len = oin .read (buf )) >= 0 )
47+ obaos .write (buf , 0 , len );
48+ }
49+
50+ Assert .assertArrayEquals (baos .toByteArray (), obaos .toByteArray ());
5151 }
5252}
0 commit comments