diff --git a/core/src/test/java/com/google/errorprone/refaster/testdata/input/WildcardUnificationTemplateExample.java b/core/src/test/java/com/google/errorprone/refaster/testdata/input/WildcardUnificationTemplateExample.java index 5f583806133..c383875c99a 100644 --- a/core/src/test/java/com/google/errorprone/refaster/testdata/input/WildcardUnificationTemplateExample.java +++ b/core/src/test/java/com/google/errorprone/refaster/testdata/input/WildcardUnificationTemplateExample.java @@ -27,10 +27,9 @@ */ public class WildcardUnificationTemplateExample { public void example() { - // BUG: The template should remove the hasSize call below! ImmutableList actual = ImmutableList.of("kurt", "kluever"); ImmutableList expected = ImmutableList.of("kluever", "kurt"); assertThat(actual).hasSize(expected.size()); - assertThat(actual).containsExactlyElementsIn(expected); + assertThat(actual).containsAtLeastElementsIn(expected); } } diff --git a/core/src/test/java/com/google/errorprone/refaster/testdata/output/WildcardUnificationTemplateExample.java b/core/src/test/java/com/google/errorprone/refaster/testdata/output/WildcardUnificationTemplateExample.java index 5f583806133..2879645caa6 100644 --- a/core/src/test/java/com/google/errorprone/refaster/testdata/output/WildcardUnificationTemplateExample.java +++ b/core/src/test/java/com/google/errorprone/refaster/testdata/output/WildcardUnificationTemplateExample.java @@ -27,10 +27,8 @@ */ public class WildcardUnificationTemplateExample { public void example() { - // BUG: The template should remove the hasSize call below! ImmutableList actual = ImmutableList.of("kurt", "kluever"); ImmutableList expected = ImmutableList.of("kluever", "kurt"); - assertThat(actual).hasSize(expected.size()); assertThat(actual).containsExactlyElementsIn(expected); } }