From 767ea311cf7132b8d4ef0d38e58ca33d6bde54a0 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 9 Jan 2012 17:21:59 +0100 Subject: [PATCH] Use MARC-8 encoding --- src/org/marc4j/test/RecordTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/marc4j/test/RecordTest.java b/src/org/marc4j/test/RecordTest.java index f78e05e..ec83a5e 100644 --- a/src/org/marc4j/test/RecordTest.java +++ b/src/org/marc4j/test/RecordTest.java @@ -23,7 +23,8 @@ public class RecordTest extends TestCase { public void setUp() throws Exception { InputStream input = getClass().getResourceAsStream( "resources/summerland.mrc"); - MarcReader reader = new MarcStreamReader(input); + assertTrue("No test data", input != null); + MarcReader reader = new MarcStreamReader(input, "MARC-8"); while (reader.hasNext()) { record = reader.next(); } -- 1.7.10.4