HomeSort by relevance Sort by last modified time
    Searched refs:Matcher (Results 1 - 25 of 1155) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/guice/core/src/com/google/inject/matcher/
Matcher.java 17 package com.google.inject.matcher;
24 public interface Matcher<T> {
32 * Returns a new matcher which returns {@code true} if both this and the
33 * given matcher return {@code true}.
35 Matcher<T> and(Matcher<? super T> other);
38 * Returns a new matcher which returns {@code true} if either this or the
39 * given matcher return {@code true}.
41 Matcher<T> or(Matcher<? super T> other)
    [all...]
  /external/junit/src/main/java/org/junit/rules/
ExpectedExceptionMatcherBuilder.java 9 import org.hamcrest.Matcher;
12 * Builds special matcher used by {@link ExpectedException}.
16 private final List<Matcher<?>> matchers = new ArrayList<Matcher<?>>();
18 void add(Matcher<?> matcher) {
19 matchers.add(matcher);
26 Matcher<Throwable> build() {
30 private Matcher<Throwable> allOfTheMatchers() {
38 private List<Matcher<? super Throwable>> castedMatchers()
    [all...]
  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/internal/
NullSafety.java 3 import org.hamcrest.Matcher;
11 public static <E> List<Matcher<? super E>> nullSafe(Matcher<? super E>[] itemMatchers) {
12 final List<Matcher<? super E>> matchers = new ArrayList<Matcher<? super E>>(itemMatchers.length);
13 for (final Matcher<? super E> itemMatcher : itemMatchers) {
14 matchers.add((Matcher<? super E>) (itemMatcher == null ? IsNull.nullValue() : itemMatcher));
  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
CombinableMatcher.java 4 import org.hamcrest.Matcher;
10 private final Matcher<? super T> matcher; field in class:CombinableMatcher
12 public CombinableMatcher(Matcher<? super T> matcher) {
13 this.matcher = matcher;
18 if (!matcher.matches(item)) {
19 matcher.describeMismatch(item, mismatch);
27 description.appendDescriptionOf(matcher);
    [all...]
IsNot.java 5 import org.hamcrest.Matcher;
11 * Calculates the logical negation of a matcher.
14 private final Matcher<T> matcher; field in class:IsNot
16 public IsNot(Matcher<T> matcher) {
17 this.matcher = matcher;
22 return !matcher.matches(arg);
27 description.appendText("not ").appendDescriptionOf(matcher);
    [all...]
IsCollectionContaining.java 4 import org.hamcrest.Matcher;
14 private final Matcher<? super T> elementMatcher;
16 public IsCollectionContaining(Matcher<? super T> elementMatcher) {
59 * Creates a matcher for {@link Iterable}s that only matches when a single pass over the
67 * the matcher to apply to items provided by the examined {@link Iterable}
69 public static <T> Matcher<Iterable<? super T>> hasItem(Matcher<? super T> itemMatcher) {
74 * Creates a matcher for {@link Iterable}s that only matches when a single pass over the
84 public static <T> Matcher<Iterable<? super T>> hasItem(T item) {
90 * Creates a matcher for {@link Iterable}s that matches when consecutive passes over th
    [all...]
StringContains.java 3 import org.hamcrest.Matcher;
19 * Creates a matcher that matches if the examined {@link String} contains the specified
25 * the substring that the returned matcher will expect to find within any examined string
28 public static Matcher<String> containsString(String substring) {
33 * Creates a matcher that matches if the examined {@link String} contains the specified
39 * the substring that the returned matcher will expect to find within any examined string
42 public static Matcher<String> containsStringIgnoringCase(String substring) {
StringEndsWith.java 3 import org.hamcrest.Matcher;
17 * Creates a matcher that matches if the examined {@link String} ends with the specified
23 * the substring that the returned matcher will expect at the end of any examined string
25 public static Matcher<String> endsWith(String suffix) {
30 * Creates a matcher that matches if the examined {@link String} ends with the specified
36 * the substring that the returned matcher will expect at the end of any examined string
38 public static Matcher<String> endsWithIgnoringCase(String suffix) {
StringStartsWith.java 3 import org.hamcrest.Matcher;
16 * Creates a matcher that matches if the examined {@link String} starts with the specified
23 * the substring that the returned matcher will expect at the start of any examined string
25 public static Matcher<String> startsWith(String prefix) { return new StringStartsWith(false, prefix); }
29 * Creates a matcher that matches if the examined {@link String} starts with the specified
36 * the substring that the returned matcher will expect at the start of any examined string
38 public static Matcher<String> startsWithIgnoringCase(String prefix) { return new StringStartsWith(true, prefix); }
  /external/junit/src/main/java/org/junit/matchers/
JUnitMatchers.java 4 import org.hamcrest.Matcher;
17 * @return A matcher matching any collection containing element
21 public static <T> Matcher<Iterable<? super T>> hasItem(T element) {
26 * @return A matcher matching any collection containing an element matching elementMatcher
27 * @deprecated Please use {@link CoreMatchers#hasItem(Matcher)} instead.
30 public static <T> Matcher<Iterable<? super T>> hasItem(Matcher<? super T> elementMatcher) {
35 * @return A matcher matching any collection containing every element in elements
39 public static <T> Matcher<Iterable<T>> hasItems(T... elements) {
44 * @return A matcher matching any collection containing at least one element that matche
    [all...]
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/object/
HasToString.java 4 import org.hamcrest.Matcher;
9 public HasToString(Matcher<? super String> toStringMatcher) {
19 * Creates a matcher that matches any examined object whose <code>toString</code> method
20 * returns a value that satisfies the specified matcher.
25 * the matcher used to verify the toString result
27 public static <T> Matcher<T> hasToString(Matcher<? super String> toStringMatcher) {
32 * Creates a matcher that matches any examined object whose <code>toString</code> method
40 public static <T> Matcher<T> hasToString(String expectedToString) {
  /external/llvm/utils/TableGen/
DAGISelMatcher.h 1 //===- DAGISelMatcher.h - Representation of DAG pattern matcher -*- C++ -*-===//
22 class Matcher;
31 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant,
33 void OptimizeMatcher(std::unique_ptr<Matcher> &Matcher,
35 void EmitMatcherTable(const Matcher *Matcher, const CodeGenDAGPatterns &CGP,
39 /// Matcher - Base class for all the DAG ISel Matcher representation
41 class Matcher {
    [all...]
  /external/mockito/src/main/java/org/mockito/hamcrest/
MockitoHamcrest.java 7 import org.hamcrest.Matcher;
21 * Before implementing or reusing an existing hamcrest matcher please read
55 * @param matcher decides whether argument matches
60 public static <T> T argThat(Matcher<T> matcher) {
61 reportMatcher(matcher);
62 return (T) defaultValue(genericTypeOfMatcher(matcher.getClass()));
71 * @param matcher decides whether argument matches
74 public static char charThat(Matcher<Character> matcher) {
    [all...]
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
IsArrayWithSize.java 4 import org.hamcrest.Matcher;
10 * Matches if array size satisfies a nested matcher.
13 public IsArrayWithSize(Matcher<? super Integer> sizeMatcher) {
23 * Creates a matcher for arrays that matches when the <code>length</code> of the array
24 * satisfies the specified matcher.
29 * a matcher for the length of an examined array
31 public static <E> Matcher<E[]> arrayWithSize(Matcher<? super Integer> sizeMatcher) {
36 * Creates a matcher for arrays that matches when the <code>length</code> of the array
44 public static <E> Matcher<E[]> arrayWithSize(int size)
    [all...]
IsMapWithSize.java 4 import org.hamcrest.Matcher;
11 * Matches if map size satisfies a nested matcher.
14 public IsMapWithSize(Matcher<? super Integer> sizeMatcher) {
24 * Creates a matcher for {@link java.util.Map}s that matches when the <code>size()</code> method returns
25 * a value that satisfies the specified matcher.
30 * a matcher for the size of an examined {@link java.util.Map}
32 public static <K, V> Matcher<Map<? extends K, ? extends V>> aMapWithSize(Matcher<? super Integer> sizeMatcher) {
37 * Creates a matcher for {@link java.util.Map}s that matches when the <code>size()</code> method returns
45 public static <K, V> Matcher<Map<? extends K, ? extends V>> aMapWithSize(int size)
46 Matcher<? super Integer> matcher = equalTo(size); local
    [all...]
IsIterableContainingInOrder.java 4 import org.hamcrest.Matcher;
15 private final List<Matcher<? super E>> matchers;
17 public IsIterableContainingInOrder(List<Matcher<? super E>> matchers) {
39 private final List<Matcher<? super F>> matchers;
43 public MatchSeries(List<Matcher<? super F>> matchers, Description mismatchDescription) {
69 final Matcher<? super F> matcher = matchers.get(nextMatchIx); local
70 if (!matcher.matches(item)) {
71 describeMismatch(matcher, item);
78 private void describeMismatch(Matcher<? super F> matcher, F item)
    [all...]
IsArrayContainingInAnyOrder.java 4 import org.hamcrest.Matcher;
16 private final Collection<Matcher<? super E>> matchers;
18 public IsArrayContainingInAnyOrder(Collection<Matcher<? super E>> matchers) {
41 * Creates an order agnostic matcher for arrays that matches when each item in the
42 * examined array satisfies one matcher anywhere in the specified matchers.
59 public static <E> Matcher<E[]> arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers) {
65 * Creates an order agnostic matcher for arrays that matches when each item in the
66 * examined array satisfies one matcher anywhere in the specified collection of matchers.
71 * N.B. each matcher in the specified collection will only be used once during a give
    [all...]
IsCollectionWithSize.java 4 import org.hamcrest.Matcher;
11 * Matches if collection size satisfies a nested matcher.
14 public IsCollectionWithSize(Matcher<? super Integer> sizeMatcher) {
24 * Creates a matcher for {@link java.util.Collection}s that matches when the <code>size()</code> method returns
25 * a value that satisfies the specified matcher.
30 * a matcher for the size of an examined {@link java.util.Collection}
32 public static <E> Matcher<Collection<? extends E>> hasSize(Matcher<? super Integer> sizeMatcher) {
37 * Creates a matcher for {@link java.util.Collection}s that matches when the <code>size()</code> method returns
46 public static <E> Matcher<Collection<? extends E>> hasSize(int size)
    [all...]
  /external/swiftshader/third_party/LLVM/utils/TableGen/
DAGISelMatcher.h 1 //===- DAGISelMatcher.h - Representation of DAG pattern matcher -----------===//
22 class Matcher;
31 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant,
33 Matcher *OptimizeMatcher(Matcher *Matcher, const CodeGenDAGPatterns &CGP);
34 void EmitMatcherTable(const Matcher *Matcher, const CodeGenDAGPatterns &CGP,
38 /// Matcher - Base class for all the the DAG ISel Matcher representatio
    [all...]
  /external/google-breakpad/src/testing/test/
gmock-generated-internal-utils_test.cc 43 using ::testing::Matcher;
56 CompileAssertTypesEqual<tuple<Matcher<int> >,
61 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char> >,
66 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char>, Matcher<bool>,
67 Matcher<double>, Matcher<char*> >,
88 CompileAssertTypesEqual<tuple<Matcher<bool> >, F::ArgumentMatcherTuple>()
    [all...]
  /external/googletest/googlemock/test/
gmock-generated-internal-utils_test.cc 43 using ::testing::Matcher;
56 CompileAssertTypesEqual<tuple<Matcher<int> >,
61 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char> >,
66 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char>, Matcher<bool>,
67 Matcher<double>, Matcher<char*> >,
88 CompileAssertTypesEqual<tuple<Matcher<bool> >, F::ArgumentMatcherTuple>()
    [all...]
  /external/v8/testing/gmock/test/
gmock-generated-internal-utils_test.cc 43 using ::testing::Matcher;
56 CompileAssertTypesEqual<tuple<Matcher<int> >,
61 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char> >,
66 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char>, Matcher<bool>,
67 Matcher<double>, Matcher<char*> >,
88 CompileAssertTypesEqual<tuple<Matcher<bool> >, F::ArgumentMatcherTuple>()
    [all...]
  /external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DescribedAsTest.java 3 import org.hamcrest.Matcher;
15 Matcher<Object> matcher = describedAs("irrelevant", anything()); local
17 assertNullSafe(matcher);
18 assertUnknownTypeSafe(matcher);
23 Matcher<?> matcher = describedAs("my description", anything()); local
25 assertDescription("my description", matcher);
30 Matcher<?> matcher = describedAs("value 1 = %0, value 2 = %1", anything(), 33, 97) local
37 Matcher<String> matcher = describedAs("irrelevant", equalTo("hi")); local
45 Matcher<Integer> matcher = describedAs("irrelevant", equalTo(2)); local
    [all...]
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/number/
OrderingComparison.java 3 import org.hamcrest.Matcher;
12 * Creates a matcher of {@link Comparable} object that matches when the examined object is
20 public static <T extends Comparable<T>> Matcher<T> comparesEqualTo(T value) {
25 * Creates a matcher of {@link Comparable} object that matches when the examined object is
34 public static <T extends Comparable<T>> Matcher<T> greaterThan(T value) {
39 * Creates a matcher of {@link Comparable} object that matches when the examined object is
48 public static <T extends Comparable<T>> Matcher<T> greaterThanOrEqualTo(T value) {
53 * Creates a matcher of {@link Comparable} object that matches when the examined object is
62 public static <T extends Comparable<T>> Matcher<T> lessThan(T value) {
67 * Creates a matcher of {@link Comparable} object that matches when the examined object i
    [all...]
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
IsEmptyString.java 5 import org.hamcrest.Matcher;
17 private static final Matcher<String> NULL_OR_EMPTY_INSTANCE = anyOf(nullValue(), INSTANCE);
32 * Creates a matcher of {@link String} that matches when the examined string has zero length.
39 public static Matcher<String> isEmptyString() {
44 * Creates a matcher of {@link String} that matches when the examined string has zero length.
49 public static Matcher<String> emptyString() {
54 * Creates a matcher of {@link String} that matches when the examined string is <code>null</code>, or
63 public static Matcher<String> isEmptyOrNullString() {
68 * Creates a matcher of {@link String} that matches when the examined string is <code>null</code>, or
74 public static Matcher<String> emptyOrNullString()
    [all...]

Completed in 438 milliseconds

1 2 3 4 5 6 7 8 91011>>