Skip to content

Commit be4002d

Browse files
author
joeretro
committed
Renamed:
and(x, y) or(x, y) To: allOf(x, y) anyOf(x, y)
1 parent dd770f8 commit be4002d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/library/org/hamcrest/collection/IsCollectionContaining.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.hamcrest.collection;
22

3-
import static org.hamcrest.core.And.and;
3+
import static org.hamcrest.core.AllOf.allOf;
44
import org.hamcrest.Description;
55
import org.hamcrest.Matcher;
66
import org.hamcrest.Factory;
@@ -47,7 +47,7 @@ public static <T> Matcher<Collection<T>> collectionContainingAllOf(Matcher<T>...
4747
for (Matcher<T> elementMatcher : elementMatchers) {
4848
all.add(collectionContaining(elementMatcher));
4949
}
50-
return and(all);
50+
return allOf(all);
5151
}
5252

5353
}

‎src/library/org/hamcrest/number/OrderingComparisons.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package org.hamcrest.number;
22

3+
import static org.hamcrest.core.AnyOf.anyOf;
34
import static org.hamcrest.core.IsEqual.eq;
45
import static org.hamcrest.core.IsNot.not;
5-
import static org.hamcrest.core.Or.or;
66
import static org.hamcrest.core.DescribedAs.describedAs;
77

88
import org.hamcrest.Factory;
@@ -18,7 +18,7 @@ public static <T extends Comparable<T>> Matcher<T> greaterThan(T value) {
1818
@Factory
1919
public static <T extends Comparable<T>> Matcher<T> greaterThanOrEqualTo(T value) {
2020
return describedAs("a value greater than or equal to %0",
21-
or(greaterThan(value), eq(value)),
21+
anyOf(greaterThan(value), eq(value)),
2222
value);
2323
}
2424

0 commit comments

Comments
 (0)