\r
public class ReaderTest extends TestCase {\r
\r
- public void testMarcStreamReader() throws Exception {\r
+ public void testReaderNoSkip() throws Exception {\r
+ testMarcStreamReader(false);\r
+ }\r
+\r
+ public void testWriteAndReadSkip() throws Exception {\r
+ testMarcStreamReader(true);\r
+ }\r
+\r
+ public void testWriteAndReadNoSkip() throws Exception {\r
+ testMarcStreamReader(false);\r
+ }\r
+\r
+ \r
+ public void testMarcStreamReader(boolean setBadIndicators) throws Exception {\r
int i = 0;\r
InputStream input = getClass().getResourceAsStream(\r
"resources/chabon.mrc");\r
MarcStreamReader reader = new MarcStreamReader(input);\r
+ reader.setBadIndicators(setBadIndicators);\r
while (reader.hasNext()) {\r
Record record = reader.next();\r
System.err.println(record.toString());\r