@Test @Ignore public void testRebuild() throws IOException, URISyntaxException { long tapeSize = 1024L * 1024; TapeArchiveImpl tapeArchive = new TapeArchiveImpl(getPrivateStoreId(), tapeSize, ".tar", "tape", "tempTape"); tapeArchive.setIndex(index); index.clear(); // Test that the index is clear tapeArchive.setRebuild(true); tapeArchive.init(); Assert.assertTrue( tapeArchive.exist(URI.create("info:fedora/uuid:0cab5f49-b6ed-47d6-87d8-a257ba782246"))); Assert.assertFalse(tapeArchive.exist(URI.create("uuid:0cab5f49-b6ed-47d6-87d8-a257ba782246"))); }
@After public void tearDown() throws Exception { index.clear(); }