@Test public void testNoEntries() throws Exception { TarFileDigestVerifier tarFileDigestVerifier = new TarFileDigestVerifier(objectReferentialRepository, 10); tarFileDigestVerifier.finalizeChecks(); verifyNoMoreInteractions(objectReferentialRepository); }
public void finalizeChecks() throws ObjectReferentialException { for (String containerName : this.entriesToCheckByContainerName.keySet()) { Collection<EntryToCheck> entriesToCheck = entriesToCheckByContainerName.get(containerName); if (!entriesToCheck.isEmpty()) { processBulk(containerName, entriesToCheck); } } }
TarFileDigestVerifier { public void finalizeChecks() throws ObjectReferentialException { for (String containerName : this.entriesToCheckByContainerName.keySet()) { Collection<EntryToCheck> entriesToCheck = entriesToCheckByContainerName.get(containerName); if (!entriesToCheck.isEmpty()) { processBulk(containerName, entriesToCheck); } } } }
TarFileDigestVerifier { public void finalizeChecks() throws ObjectReferentialException { for (String containerName : this.entriesToCheckByContainerName.keySet()) { Collection<EntryToCheck> entriesToCheck = entriesToCheckByContainerName.get(containerName); if (!entriesToCheck.isEmpty()) { processBulk(containerName, entriesToCheck); } } } TarFileDigestVerifier(
        ObjectReferentialRepository objectReferentialRepository, int bulkSize); }
TarFileDigestVerifier { public void finalizeChecks() throws ObjectReferentialException { for (String containerName : this.entriesToCheckByContainerName.keySet()) { Collection<EntryToCheck> entriesToCheck = entriesToCheckByContainerName.get(containerName); if (!entriesToCheck.isEmpty()) { processBulk(containerName, entriesToCheck); } } } TarFileDigestVerifier(
        ObjectReferentialRepository objectReferentialRepository, int bulkSize); void addDigestToCheck(String tarEntryName, String digestValue); void finalizeChecks(); }
TarFileDigestVerifier { public void finalizeChecks() throws ObjectReferentialException { for (String containerName : this.entriesToCheckByContainerName.keySet()) { Collection<EntryToCheck> entriesToCheck = entriesToCheckByContainerName.get(containerName); if (!entriesToCheck.isEmpty()) { processBulk(containerName, entriesToCheck); } } } TarFileDigestVerifier(
        ObjectReferentialRepository objectReferentialRepository, int bulkSize); void addDigestToCheck(String tarEntryName, String digestValue); void finalizeChecks();  }