NitfParser.parse(reader, parseStrategy);
checkCompliantHeaderResults(parseStrategy);
is.close();
}
@Test
<BUG>public void testCompliantHeaderReadFile() throws IOException, NitfFormatException {
</BUG>
final String simpleNitf21File = "/JitcNitf21Samples/i_3034c.ntf";
assertNotNull("Test file missing", getClass().getResource(simpleNitf21File));
<BUG>File resourceFile = new File(getClass().getResource(simpleNitf21File).getFile());
</BUG>
SlottedParseStrategy parseStrategy = new SlottedParseStrategy(SlottedParseStrategy.HEADERS_ONLY);

NitfParser.parse(reader, parseStrategy);
checkCompliantHeaderResults(parseStrategy);
is.close();
}
@Test
public void testCompliantHeaderReadFile() throws IOException, NitfFormatException, URISyntaxException {
final String simpleNitf21File = "/JitcNitf21Samples/i_3034c.ntf";
assertNotNull("Test file missing", getClass().getResource(simpleNitf21File));
File resourceFile = new File(getClass().getResource(simpleNitf21File).toURI().getPath());
SlottedParseStrategy parseStrategy = new SlottedParseStrategy(SlottedParseStrategy.HEADERS_ONLY);
