Searched refs:elementMatchers (Results 1 – 4 of 4) sorted by relevance
14 private final Matcher<? super T>[] elementMatchers; field in IsArray16 public IsArray(Matcher<? super T>[] elementMatchers) { in IsArray() argument17 this.elementMatchers = elementMatchers.clone(); in IsArray()22 if (array.length != elementMatchers.length) return false; in matchesSafely()25 if (!elementMatchers[i].matches(array[i])) return false; in matchesSafely()33 if (actual.length != elementMatchers.length) { in describeMismatchSafely()38 if (!elementMatchers[i].matches(actual[i])) { in describeMismatchSafely()40 elementMatchers[i].describeMismatch(actual[i], mismatchDescription); in describeMismatchSafely()50 Arrays.asList(elementMatchers)); in describeTo()93 public static <T> IsArray<T> array(Matcher<? super T>... elementMatchers) { in array() argument[all …]
81 private final ImmutableList<Predicate<CldrPath>> elementMatchers; field in PathMatcher84 private PathMatcher(PathMatcher parent, List<Predicate<CldrPath>> elementMatchers) { in PathMatcher() argument86 this.elementMatchers = ImmutableList.copyOf(elementMatchers); in PathMatcher()88 elementMatchers.size() + (parent != null ? parent.totalElementCount : 0); in PathMatcher()117 while (path.getLength() > totalElementCount - elementMatchers.size()) { in matches()151 && matchRegion(path, totalElementCount - elementMatchers.size()); in locallyMatches()157 checkPositionIndex(offset, path.getLength() - elementMatchers.size()); in matchRegion()159 int matchPathLength = offset + elementMatchers.size(); in matchRegion()163 return matchForward(path, elementMatchers.size() - 1); in matchRegion()171 && elementMatchers.get(matcherIndex).test(path); in matchForward()
50 public static <T> Matcher<Iterable<T>> hasItems(Matcher<? super T>... elementMatchers) { in hasItems() argument51 return CoreMatchers.<T>hasItems(elementMatchers); in hasItems()
558 … <T> org.hamcrest.collection.IsArray<T> array(org.hamcrest.Matcher<? super T>... elementMatchers) { in array() argument559 return org.hamcrest.collection.IsArray.<T>array(elementMatchers); in array()