Home
last modified time | relevance | path

Searched refs:arrayContaining (Results 1 – 4 of 4) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsArrayContainingInOrderTest.java6 import static org.hamcrest.collection.IsArrayContainingInOrder.arrayContaining;
14 return arrayContaining(equalTo(1), equalTo(2)); in createMatcher()
19 assertDescription("[<1>, <2>]", arrayContaining(equalTo(1), equalTo(2))); in testHasAReadableDescription()
23 assertMatches("in order", arrayContaining(1, 2, 3), new Integer[] {1, 2, 3}); in testMatchesItemsInOrder()
24 assertMatches("single", arrayContaining(1), new Integer[] {1}); in testMatchesItemsInOrder()
29 …assertMatches("in order", arrayContaining(equalTo(1), equalTo(2), equalTo(3)), new Integer[] {1, 2… in testAppliesMatchersInOrder()
30 assertMatches("single", arrayContaining(equalTo(1)), new Integer[] {1}); in testAppliesMatchersInOrder()
34 Matcher<Integer[]> matcher = arrayContaining(1, 2, 3); in testMismatchesItemsInOrder()
43 assertMatches("with nulls", arrayContaining(null, null), new Object[]{null, null}); in testCanHandleNullValuesInAnArray()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsArrayContainingInOrder.java49 public static <E> Matcher<E[]> arrayContaining(E... items) { in arrayContaining() method in IsArrayContainingInOrder
54 return arrayContaining(matchers); in arrayContaining()
67 public static <E> Matcher<E[]> arrayContaining(Matcher<? super E>... itemMatchers) { in arrayContaining() method in IsArrayContainingInOrder
72 return arrayContaining(nullSafeWithExplicitTypeMatchers); in arrayContaining()
85 public static <E> Matcher<E[]> arrayContaining(List<Matcher<? super E>> itemMatchers) { in arrayContaining() method in IsArrayContainingInOrder
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java600 public static <E> org.hamcrest.Matcher<E[]> arrayContaining(E... items) { in arrayContaining() method in Matchers
601 return org.hamcrest.collection.IsArrayContainingInOrder.<E>arrayContaining(items); in arrayContaining()
614 …public static <E> org.hamcrest.Matcher<E[]> arrayContaining(org.hamcrest.Matcher<? super E>... ite… in arrayContaining() method in Matchers
615 return org.hamcrest.collection.IsArrayContainingInOrder.<E>arrayContaining(itemMatchers); in arrayContaining()
628 …public static <E> org.hamcrest.Matcher<E[]> arrayContaining(java.util.List<org.hamcrest.Matcher<? … in arrayContaining() method in Matchers
629 return org.hamcrest.collection.IsArrayContainingInOrder.<E>arrayContaining(itemMatchers); in arrayContaining()
/external/hamcrest/
DCHANGES.txt23 * Fix gh issue #25 - arrayContaining(null, null) cause NullPointerException