HomeSort by relevance Sort by last modified time
    Searched refs:hasItemInArray (Results 1 - 3 of 3) sorted by null

  /external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
IsArrayContainingTest.java 6 import static org.hamcrest.collection.IsArrayContaining.hasItemInArray;
12 return hasItemInArray("irrelevant");
17 hasItemInArray("a"), new String[]{"a", "b", "c"});
22 hasItemInArray("a"), new String[]{"b", "c"});
24 hasItemInArray("a"), new String[0]);
29 hasItemInArray("a"), null);
33 assertDescription("an array containing \"a\"", hasItemInArray("a"));
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
IsArrayContaining.java 48 * <pre>assertThat(new String[] {"foo", "bar"}, hasItemInArray(startsWith("ba")))</pre>
53 public static <T> Matcher<T[]> hasItemInArray(Matcher<? super T> elementMatcher) {
58 * A shortcut to the frequently used <code>hasItemInArray(equalTo(x))</code>.
60 * <pre>assertThat(hasItemInArray(x))</pre>
62 * <pre>assertThat(hasItemInArray(equalTo(x)))</pre>
67 public static <T> Matcher<T[]> hasItemInArray(T element) {
69 return IsArrayContaining.<T>hasItemInArray(matcher);
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
Matchers.java 567 * <pre>assertThat(new String[] {"foo", "bar"}, hasItemInArray(startsWith("ba")))</pre>
572 public static <T> org.hamcrest.Matcher<T[]> hasItemInArray(org.hamcrest.Matcher<? super T> elementMatcher) {
573 return org.hamcrest.collection.IsArrayContaining.<T>hasItemInArray(elementMatcher);
577 * A shortcut to the frequently used <code>hasItemInArray(equalTo(x))</code>.
579 * <pre>assertThat(hasItemInArray(x))</pre>
581 * <pre>assertThat(hasItemInArray(equalTo(x)))</pre>
586 public static <T> org.hamcrest.Matcher<T[]> hasItemInArray(T element) {
587 return org.hamcrest.collection.IsArrayContaining.<T>hasItemInArray(element);
    [all...]

Completed in 102 milliseconds