Home
last modified time | relevance | path

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

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsArrayWithSizeTest.java6 import static org.hamcrest.collection.IsArrayWithSize.arrayWithSize;
14 return arrayWithSize(equalTo(2)); in createMatcher()
18 assertMatches("correct size", arrayWithSize(equalTo(3)), new Object[] {1, 2, 3}); in testMatchesWhenSizeIsCorrect()
19 assertDoesNotMatch("incorrect size", arrayWithSize(equalTo(2)), new Object[] {1, 2, 3}); in testMatchesWhenSizeIsCorrect()
23 assertMatches("correct size", arrayWithSize(3), new Object[] {1, 2, 3}); in testProvidesConvenientShortcutForArrayWithSizeEqualTo()
24 assertDoesNotMatch("incorrect size", arrayWithSize(2), new Object[] {1, 2, 3}); in testProvidesConvenientShortcutForArrayWithSizeEqualTo()
33 assertDescription("an array with size <3>", arrayWithSize(equalTo(3))); in testHasAReadableDescription()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsArrayWithSize.java31 public static <E> Matcher<E[]> arrayWithSize(Matcher<? super Integer> sizeMatcher) { in arrayWithSize() method in IsArrayWithSize
44 public static <E> Matcher<E[]> arrayWithSize(int size) { in arrayWithSize() method in IsArrayWithSize
45 return arrayWithSize(equalTo(size)); in arrayWithSize()
56 Matcher<E[]> isEmpty = arrayWithSize(0); in emptyArray()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java711 …public static <E> org.hamcrest.Matcher<E[]> arrayWithSize(org.hamcrest.Matcher<? super java.lang.I… in arrayWithSize() method in Matchers
712 return org.hamcrest.collection.IsArrayWithSize.<E>arrayWithSize(sizeMatcher); in arrayWithSize()
724 public static <E> org.hamcrest.Matcher<E[]> arrayWithSize(int size) { in arrayWithSize() method in Matchers
725 return org.hamcrest.collection.IsArrayWithSize.<E>arrayWithSize(size); in arrayWithSize()
/external/volley/src/test/java/com/android/volley/toolbox/
DDiskBasedCacheTest.java19 import static org.hamcrest.Matchers.arrayWithSize;
342 assertThat(listCachedFiles(), is(arrayWithSize(1))); in testGetWrongKey()