Skip to content
Permalink
Browse files
Format.
  • Loading branch information
garydgregory committed May 5, 2022
1 parent 2b643c3 commit 00e163e37602f4bf70f485e085f31ab3a9390da0
Showing 1 changed file with 5 additions and 10 deletions.
@@ -59,8 +59,7 @@ public void oneMethodsIsDifferentFromTwoMethods() {
final SevenZArchiveEntry z1 = new SevenZArchiveEntry();
final SevenZArchiveEntry z2 = new SevenZArchiveEntry();
z1.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.COPY)));
z2.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER),
new SevenZMethodConfiguration(SevenZMethod.LZMA2)));
z2.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER), new SevenZMethodConfiguration(SevenZMethod.LZMA2)));
assertNotEquals(z1, z2);
assertNotEquals(z2, z1);
}
@@ -69,10 +68,8 @@ public void oneMethodsIsDifferentFromTwoMethods() {
public void sameMethodsYieldEqualEntries() {
final SevenZArchiveEntry z1 = new SevenZArchiveEntry();
final SevenZArchiveEntry z2 = new SevenZArchiveEntry();
z1.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER),
new SevenZMethodConfiguration(SevenZMethod.LZMA2)));
z2.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER),
new SevenZMethodConfiguration(SevenZMethod.LZMA2)));
z1.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER), new SevenZMethodConfiguration(SevenZMethod.LZMA2)));
z2.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER), new SevenZMethodConfiguration(SevenZMethod.LZMA2)));
assertEquals(z1, z2);
assertEquals(z2, z1);
}
@@ -81,10 +78,8 @@ public void sameMethodsYieldEqualEntries() {
public void methodOrderMattersInEquals() {
final SevenZArchiveEntry z1 = new SevenZArchiveEntry();
final SevenZArchiveEntry z2 = new SevenZArchiveEntry();
z1.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.LZMA2),
new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER)));
z2.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER),
new SevenZMethodConfiguration(SevenZMethod.LZMA2)));
z1.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.LZMA2), new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER)));
z2.setContentMethods(Arrays.asList(new SevenZMethodConfiguration(SevenZMethod.DELTA_FILTER), new SevenZMethodConfiguration(SevenZMethod.LZMA2)));
assertNotEquals(z1, z2);
assertNotEquals(z2, z1);
}

0 comments on commit 00e163e

Please sign in to comment.