aboutsummaryrefslogtreecommitdiff
path: root/common/src/test/java/com
diff options
context:
space:
mode:
authorcpovirk <cpovirk@google.com>2019-04-29 15:53:13 -0700
committerRon Shapiro <shapiro.rd@gmail.com>2019-05-05 12:32:25 -0400
commit320cce8e71097355fc1baab19504149cfc0d3f7e (patch)
tree9e2bb8bf2d6133b85d10f35e5d50b6ef96c5dbf7 /common/src/test/java/com
parentedeaf18e7ba423512d7f43d3f742e10a34f56001 (diff)
downloadauto-320cce8e71097355fc1baab19504149cfc0d3f7e.tar.gz
Migrate from containsAllOf to containsAtLeast.
The two behave identically, and containsAllOf is being removed. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=245840719
Diffstat (limited to 'common/src/test/java/com')
-rw-r--r--common/src/test/java/com/google/auto/common/MoreElementsTest.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/common/src/test/java/com/google/auto/common/MoreElementsTest.java b/common/src/test/java/com/google/auto/common/MoreElementsTest.java
index 1cedaf64..a16eb5fd 100644
--- a/common/src/test/java/com/google/auto/common/MoreElementsTest.java
+++ b/common/src/test/java/com/google/auto/common/MoreElementsTest.java
@@ -339,12 +339,13 @@ public class MoreElementsTest {
methods.add(method);
}
}
- assertThat(methods).containsAllOf(
- getMethod(Object.class, "clone"),
- getMethod(Object.class, "finalize"),
- getMethod(Object.class, "wait"),
- getMethod(Object.class, "wait", longMirror),
- getMethod(Object.class, "wait", longMirror, intMirror));
+ assertThat(methods)
+ .containsAtLeast(
+ getMethod(Object.class, "clone"),
+ getMethod(Object.class, "finalize"),
+ getMethod(Object.class, "wait"),
+ getMethod(Object.class, "wait", longMirror),
+ getMethod(Object.class, "wait", longMirror, intMirror));
return methods;
}