From: Dennis Schafroth Date: Mon, 9 Jan 2012 16:25:42 +0000 (+0100) Subject: Use smaller test data X-Git-Tag: v2.5~23^2~11 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=e7a79314934df8fe65c400429e255fc0cb1c8372;p=marc4j.git Use smaller test data --- diff --git a/src/org/marc4j/test/GzipRecordTest.java b/src/org/marc4j/test/GzipRecordTest.java index 3e0c190..1cb6ddf 100644 --- a/src/org/marc4j/test/GzipRecordTest.java +++ b/src/org/marc4j/test/GzipRecordTest.java @@ -18,7 +18,7 @@ public class GzipRecordTest extends TestCase { public void testGzipRecordRead() throws Exception { InputStream input = getClass().getResourceAsStream( - "resources/oais.26.mrc.gz"); + "resources/brkrtest.mrc.gz"); assertTrue("No test data", input != null); GZIPInputStream gzipped = new GZIPInputStream(input); MarcReader reader = new MarcStreamReader(gzipped, "MARC-8"); @@ -27,7 +27,7 @@ public class GzipRecordTest extends TestCase { record = reader.next(); ++index; } - assertTrue("Number of records was not correct: " + index, index == 60221); + assertTrue("Number of records was not correct: " + index, index == 8); input.close(); }