use of gov.loc.repository.bagit.hash.StandardBagitAlgorithmNameToSupportedAlgorithmMapping in project bagit-java by LibraryOfCongress.
the class ManifestReaderTest method testReadAllManifests.
@Test
public void testReadAllManifests() throws Exception {
Path rootBag = Paths.get(getClass().getClassLoader().getResource("bags/v0_97/bag").toURI());
Bag bag = new Bag();
bag.setRootDir(rootBag);
ManifestReader.readAllManifests(new StandardBagitAlgorithmNameToSupportedAlgorithmMapping(), rootBag, bag);
assertEquals(1, bag.getPayLoadManifests().size());
assertEquals(1, bag.getTagManifests().size());
}
Aggregations