@Test(dataProvider = "testIFDParser") public void testGetIFDCount(IFDParser ifdParser) throws IOException, JXRException { int expectedIFDCount = 1; ifdParser.parse(); int actualIFDCount = ifdParser.getIFDCount(); ifdParser.close(); assertEquals(expectedIFDCount, actualIFDCount); }
@Test(dataProvider = "testIFDParser") public void testClose(IFDParser ifdParser) throws IOException, JXRException { ifdParser.parse(); ifdParser.close(); assertNull(ifdParser.getIFDMetadata()); }