Skip to content

Commit

Permalink
Delete method with a type mismatch.
Browse files Browse the repository at this point in the history
This isn't called, so it seems easier to delete than to fix.

PiperOrigin-RevId: 332195343
  • Loading branch information
Googler authored and copybara-github committed Sep 17, 2020
1 parent 4f008c5 commit 2a17285
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,7 @@ void containsAllArchivedFilesIn(String... paths) throws IOException {
.map(ZipEntry::getName)
.map(n -> n.replaceAll(PATH_NORMALIZER, "$1/$3"))
.collect(Collectors.toSet()))
.containsAtLeastElementsIn(Arrays.asList(paths));
}

@SuppressWarnings("TruthIncompatibleType")
void containsExactlyArchivedFilesIn(String... paths) throws IOException {
if (actual == null) {
failWithoutActual(simpleFact("expected not to be null"));
}
exists();

assertThat(
new ZipFile(actual.toFile())
.stream()
.map(ZipEntry::getName)
.map(n -> n.replaceAll(PATH_NORMALIZER, "$1/$3"))
.collect(Collectors.toSet()))
.containsExactly(/* expected: String, actual: List<String> */ Arrays.asList(paths));
.containsAtLeastElementsIn(paths);
}

void containsNoArchivedFilesIn(String... paths) throws IOException {
Expand Down

0 comments on commit 2a17285

Please sign in to comment.