| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Factory | |
|---|---|
| org.hamcrest.core | Fundamental matchers of objects and values, and composite matchers. | 
| Uses of Factory in org.hamcrest.core | 
|---|
| Methods in org.hamcrest.core with annotations of type Factory | ||
|---|---|---|
| static
 | AllOf.allOf(java.lang.Iterable<Matcher<? super T>> matchers)Creates a matcher that matches if the examined object matches ALL of the specified matchers. | |
| static
 | AllOf.allOf(Matcher<? super T>... matchers)Creates a matcher that matches if the examined object matches ALL of the specified matchers. | |
| static
 | AllOf.allOf(Matcher<? super T> first,
      Matcher<? super T> second)Creates a matcher that matches if the examined object matches ALL of the specified matchers. | |
| static
 | AllOf.allOf(Matcher<? super T> first,
      Matcher<? super T> second,
      Matcher<? super T> third)Creates a matcher that matches if the examined object matches ALL of the specified matchers. | |
| static
 | AllOf.allOf(Matcher<? super T> first,
      Matcher<? super T> second,
      Matcher<? super T> third,
      Matcher<? super T> fourth)Creates a matcher that matches if the examined object matches ALL of the specified matchers. | |
| static
 | AllOf.allOf(Matcher<? super T> first,
      Matcher<? super T> second,
      Matcher<? super T> third,
      Matcher<? super T> fourth,
      Matcher<? super T> fifth)Creates a matcher that matches if the examined object matches ALL of the specified matchers. | |
| static
 | AllOf.allOf(Matcher<? super T> first,
      Matcher<? super T> second,
      Matcher<? super T> third,
      Matcher<? super T> fourth,
      Matcher<? super T> fifth,
      Matcher<? super T> sixth)Creates a matcher that matches if the examined object matches ALL of the specified matchers. | |
| static
 | IsInstanceOf.any(java.lang.Class<T> type)Creates a matcher that matches when the examined object is an instance of the specified type,
 as determined by calling theClass.isInstance(Object)method on that type, passing the
 the examined object. | |
| static
 | AnyOf.anyOf(java.lang.Iterable<Matcher<? super T>> matchers)Creates a matcher that matches if the examined object matches ANY of the specified matchers. | |
| static
 | AnyOf.anyOf(Matcher<? super T>... matchers)Creates a matcher that matches if the examined object matches ANY of the specified matchers. | |
| static
 | AnyOf.anyOf(Matcher<T> first,
      Matcher<? super T> second)Creates a matcher that matches if the examined object matches ANY of the specified matchers. | |
| static
 | AnyOf.anyOf(Matcher<T> first,
      Matcher<? super T> second,
      Matcher<? super T> third)Creates a matcher that matches if the examined object matches ANY of the specified matchers. | |
| static
 | AnyOf.anyOf(Matcher<T> first,
      Matcher<? super T> second,
      Matcher<? super T> third,
      Matcher<? super T> fourth)Creates a matcher that matches if the examined object matches ANY of the specified matchers. | |
| static
 | AnyOf.anyOf(Matcher<T> first,
      Matcher<? super T> second,
      Matcher<? super T> third,
      Matcher<? super T> fourth,
      Matcher<? super T> fifth)Creates a matcher that matches if the examined object matches ANY of the specified matchers. | |
| static
 | AnyOf.anyOf(Matcher<T> first,
      Matcher<? super T> second,
      Matcher<? super T> third,
      Matcher<? super T> fourth,
      Matcher<? super T> fifth,
      Matcher<? super T> sixth)Creates a matcher that matches if the examined object matches ANY of the specified matchers. | |
| static Matcher<java.lang.Object> | IsAnything.anything()Creates a matcher that always matches, regardless of the examined object. | |
| static Matcher<java.lang.Object> | IsAnything.anything(java.lang.String description)Creates a matcher that always matches, regardless of the examined object, but describes itself with the specified String. | |
| static
 | CombinableMatcher.both(Matcher<? super LHS> matcher)Creates a matcher that matches when both of the specified matchers match the examined object. | |
| static Matcher<java.lang.String> | StringContains.containsString(java.lang.String substring)Creates a matcher that matches if the examined Stringcontains the specifiedStringanywhere. | |
| static
 | DescribedAs.describedAs(java.lang.String description,
            Matcher<T> matcher,
            java.lang.Object... values)Wraps an existing matcher, overriding its description with that specified. | |
| static
 | CombinableMatcher.either(Matcher<? super LHS> matcher)Creates a matcher that matches when either of the specified matchers match the examined object. | |
| static Matcher<java.lang.String> | StringEndsWith.endsWith(java.lang.String suffix)Creates a matcher that matches if the examined Stringends with the specifiedString. | |
| static
 | IsEqual.equalTo(T operand)Creates a matcher that matches when the examined object is logically equal to the specified operand, as determined by calling theObject.equals(java.lang.Object)method on
 the examined object. | |
| static
 | Every.everyItem(Matcher<U> itemMatcher)Creates a matcher for Iterables that only matches when a single pass over the
 examinedIterableyields items that are all matched by the specifieditemMatcher. | |
| static
 | IsCollectionContaining.hasItem(Matcher<? super T> itemMatcher)Creates a matcher for Iterables that only matches when a single pass over the
 examinedIterableyields at least one item that is matched by the specifieditemMatcher. | |
| static
 | IsCollectionContaining.hasItem(T item)Creates a matcher for Iterables that only matches when a single pass over the
 examinedIterableyields at least one item that is equal to the specifieditem. | |
| static
 | IsCollectionContaining.hasItems(Matcher<? super T>... itemMatchers)Creates a matcher for Iterables that matches when consecutive passes over the
 examinedIterableyield at least one item that is matched by the corresponding
 matcher from the specifieditemMatchers. | |
| static
 | IsCollectionContaining.hasItems(T... items)Creates a matcher for Iterables that matches when consecutive passes over the
 examinedIterableyield at least one item that is equal to the corresponding
 item from the specifieditems. | |
| static
 | IsInstanceOf.instanceOf(java.lang.Class<?> type)Creates a matcher that matches when the examined object is an instance of the specified type,
 as determined by calling theClass.isInstance(Object)method on that type, passing the
 the examined object. | |
| static
 | Is.is(java.lang.Class<T> type)Deprecated. use isA(Class | |
| static
 | Is.is(Matcher<T> matcher)Decorates another Matcher, retaining its behaviour, but allowing tests to be slightly more expressive. | |
| static
 | Is.is(T value)A shortcut to the frequently used is(equalTo(x)). | |
| static
 | Is.isA(java.lang.Class<T> type)A shortcut to the frequently used is(instanceOf(SomeClass.class)). | |
| static
 | IsNot.not(Matcher<T> matcher)Creates a matcher that wraps an existing matcher, but inverts the logic by which it will match. | |
| static
 | IsNot.not(T value)A shortcut to the frequently used not(equalTo(x)). | |
| static Matcher<java.lang.Object> | IsNull.notNullValue()A shortcut to the frequently used not(nullValue()). | |
| static
 | IsNull.notNullValue(java.lang.Class<T> type)A shortcut to the frequently used not(nullValue(X.class)). | |
| static Matcher<java.lang.Object> | IsNull.nullValue()Creates a matcher that matches if examined object is null. | |
| static
 | IsNull.nullValue(java.lang.Class<T> type)Creates a matcher that matches if examined object is null. | |
| static
 | IsSame.sameInstance(T target)Creates a matcher that matches only when the examined object is the same instance as the specified target object. | |
| static Matcher<java.lang.String> | StringStartsWith.startsWith(java.lang.String prefix)Creates a matcher that matches if the examined Stringstarts with the specifiedString. | |
| static
 | IsSame.theInstance(T target)Creates a matcher that matches only when the examined object is the same instance as the specified target object. | |
| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||