| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Matcher | |
| public static <T> Matcher | |
| public static <T> Matcher | |
| public static <T> Matcher | |
| public static <T> Matcher | |
| public static <T> Matcher | |
| public static <T> Matcher | |
| public static <K, V> Matcher | aMapWithSize(Matcher<? super Integer>
a matcher for the size of an examined sizeMatcher)java.Creates a matcher for |
| public static <K, V> Matcher | aMapWithSize(int
the expected size of an examined size)java.Creates a matcher for |
| public static <K, V> Matcher | |
| public static <T> Matcher | any(Class<T> type)
Creates a matcher that matches when the examined object is an instance of the specified |
| public static <T> AnyOf | |
| public static <T> AnyOf | |
| public static <T> AnyOf | |
| public static <T> AnyOf | |
| public static <T> AnyOf | |
| public static <T> AnyOf | |
| public static <T> AnyOf | |
| public static Matcher | |
| public static Matcher | |
| public static <T> IsArray | |
| public static <E> Matcher | arrayContaining(E...
the items that must equal the items within an examined array items)Creates a matcher for arrays that matches when each item in the examined array is logically equal to the corresponding item in the specified items. |
| public static <E> Matcher | arrayContaining(Matcher<? super E>...
the matchers that must be satisfied by the items in the examined array itemMatchers)Creates a matcher for arrays that matches when each item in the examined array satisfies the corresponding matcher in the specified matchers. |
| public static <E> Matcher | arrayContaining(List<Matcher<? super E>>
a list of matchers, each of which must be satisfied by the corresponding item in an examined array itemMatchers)Creates a matcher for arrays that matches when each item in the examined array satisfies the corresponding matcher in the specified list of matchers. |
| public static <E> Matcher | arrayContainingInAnyOrder(Matcher<? super E>...
a list of matchers, each of which must be satisfied by an entry in an examined array itemMatchers)Creates an order agnostic matcher for arrays that matches when each item in the examined array satisfies one matcher anywhere in the specified matchers. |
| public static <E> Matcher | arrayContainingInAnyOrder(Collection<Matcher<? super E>>
a list of matchers, each of which must be satisfied by an item provided by an examined array itemMatchers)Creates an order agnostic matcher for arrays that matches when each item in the examined array satisfies one matcher anywhere in the specified collection of matchers. |
| public static <E> Matcher | arrayContainingInAnyOrder(E...
the items that must equal the entries of an examined array, in any order items)Creates an order agnostic matcher for arrays that matches when each item in the examined array is logically equal to one item anywhere in the specified items. |
| public static <E> Matcher | arrayWithSize(Matcher<? super Integer>
a matcher for the length of an examined array sizeMatcher)Creates a matcher for arrays that matches when the |
| public static <E> Matcher | arrayWithSize(int
the length that an examined array must have for a positive match size)Creates a matcher for arrays that matches when the |
| public static Matcher | blankOrNullString()
Creates a matcher of |
| public static Matcher | blankString()
Creates a matcher of |
| public static <LHS> CombinableMatcher. | |
| public static Matcher | |
| public static Matcher | closeTo(BigDecimal
the expected value of matching BigDecimals operand, BigDecimal the delta (+/-) within which matches will be allowed error)Creates a matcher of |
| public static <T extends Comparable | comparesEqualTo(T
the value which, when passed to the compareTo method of the examined object, should return zero value)Creates a matcher of |
| public static <E> Matcher | |
| public static <E> Matcher | |
| public static <E> Matcher | contains(Matcher<? super E>...
the matchers that must be satisfied by the items provided by an examined itemMatchers)IterableCreates a matcher for |
| public static <E> Matcher | contains(List<Matcher<? super E>>
a list of matchers, each of which must be satisfied by the corresponding item provided by
an examined itemMatchers)IterableCreates a matcher for |
| public static <T> Matcher | containsInAnyOrder(Matcher<? super T>...
a list of matchers, each of which must be satisfied by an item provided by an examined itemMatchers)Iterable
Creates an order agnostic matcher for |
| public static <T> Matcher | containsInAnyOrder(T...
the items that must equal the items provided by an examined items)Iterable in any order
Creates an order agnostic matcher for |
| public static <T> Matcher | containsInAnyOrder(Collection<Matcher<? super T>>
a list of matchers, each of which must be satisfied by an item provided by an examined itemMatchers)Iterable
Creates an order agnostic matcher for |
| public static <E> Matcher | containsInRelativeOrder(E...
the items that must be contained within items provided by an examined items)Iterable in the same relative orderCreates a matcher for assertThat(Arrays.asList("a", "b", "c", "d", "e"), containsInRelativeOrder("b", "d"))
|
| public static <E> Matcher | containsInRelativeOrder(Matcher<? super E>...
the matchers that must be satisfied by the items provided by an examined itemMatchers)Iterable in the same relative orderCreates a matcher for |
| public static <E> Matcher | containsInRelativeOrder(List<Matcher<? super E>>
a list of matchers, each of which must be satisfied by the items provided by
an examined itemMatchers)Iterable in the same relative orderCreates a matcher for |
| public static Matcher | containsString(String
the substring that the returned matcher will expect to find within any examined string substring)Creates a matcher that matches if the examined |
| public static Matcher | containsStringIgnoringCase(String
the substring that the returned matcher will expect to find within any examined string substring)Creates a matcher that matches if the examined |
| public static <T> Matcher | describedAs(String
the new description for the wrapped matcher description, Matcher<T> the matcher to wrap matcher, Object... optional values to insert into the tokenized description values)Wraps an existing matcher, overriding its description with that specified. |
| public static <LHS> CombinableMatcher. | |
| public static <E> Matcher | empty()
Creates a matcher for |
| public static <E> Matcher | |
| public static <E> Matcher | emptyCollectionOf(Class<E>
the type of the collection's content unusedToForceReturnType)Creates a matcher for |
| public static <E> Matcher | |
| public static <E> Matcher | emptyIterableOf(Class<E>
the type of the iterable's content unusedToForceReturnType)Creates a matcher for |
| public static Matcher | emptyOrNullString()
Creates a matcher of |
| public static Matcher | |
| public static Matcher | |
| public static Matcher | endsWithIgnoringCase(String
the substring that the returned matcher will expect at the end of any examined string suffix)Creates a matcher that matches if the examined |
| public static <T> Matcher | equalTo(T operand)
Creates a matcher that matches when the examined object is logically equal to the specified
|
| public static Matcher | equalToCompressingWhiteSpace(String
the expected value of matched strings expectedString)Creates a matcher of |
| public static Matcher | equalToIgnoringCase(String
the expected value of matched strings expectedString)Creates a matcher of |
| public static Matcher | equalToIgnoringWhiteSpace(String
the expected value of matched strings expectedString)
Deprecated
equalToCompressingWhiteSpace(String)
|
| public static Matcher | equalToObject(Object operand)
Creates an |
| public static Matcher | eventFrom(Class<? extends EventObject>
the class of the event to match on eventClass, Object the source of the event source)Creates a matcher of |
| public static Matcher | eventFrom(Object
the source of the event source)Creates a matcher of |
| public static <U> Matcher | |
| public static <T extends Comparable | greaterThan(T
the value which, when passed to the compareTo method of the examined object, should return greater
than zero value)Creates a matcher of |
| public static <T extends Comparable | greaterThanOrEqualTo(T
the value which, when passed to the compareTo method of the examined object, should return greater
than or equal to zero value)Creates a matcher of |
| public static <K, V> Matcher | hasEntry(Matcher<? super K>
the key matcher that, in combination with the valueMatcher, must be satisfied by at least one entry keyMatcher, Matcher<? super V> the value matcher that, in combination with the keyMatcher, must be satisfied by at least one entry valueMatcher)Creates a matcher for |
| public static <K, V> Matcher | hasEntry(K
the key that, in combination with the value, must be describe at least one entry key, V the value that, in combination with the key, must be describe at least one entry value)Creates a matcher for |
| public static <T> Matcher | |
| public static <T> Matcher | |
| public static <T> Matcher | hasItemInArray(Matcher<? super T>
the matcher to apply to elements in examined arrays elementMatcher)Creates a matcher for arrays that matches when the examined array contains at least one item
that is matched by the specified |
| public static <T> Matcher | hasItemInArray(T
the element that should be present in examined arrays element)A shortcut to the frequently used |
| public static <T> Matcher | hasItems(Matcher<? super T>...
the matchers to apply to items provided by the examined itemMatchers)IterableCreates a matcher for |
| public static <T> Matcher | |
| public static <K> Matcher | hasKey(Matcher<? super K>
the matcher that must be satisfied by at least one key keyMatcher)Creates a matcher for |
| public static <K> Matcher | hasKey(K
the key that satisfying maps must contain key)Creates a matcher for |
| public static Matcher | hasLength(int
the expected length of the string length)Creates a matcher of |
| public static <T> Matcher | hasProperty(String
the name of the JavaBean property that examined beans should possess propertyName)Creates a matcher that matches when the examined object has a JavaBean property with the specified name. |
| public static <T> Matcher | hasProperty(String
the name of the JavaBean property that examined beans should possess propertyName, Matcher<?> a matcher for the value of the specified property of the examined bean valueMatcher)Creates a matcher that matches when the examined object has a JavaBean property with the specified name whose value satisfies the specified matcher. |
| public static <E> Matcher | hasSize(Matcher<? super Integer>
a matcher for the size of an examined sizeMatcher)java.Creates a matcher for |
| public static <E> Matcher | hasSize(int
the expected size of an examined size)java.Creates a matcher for |
| public static <T> Matcher | hasToString(Matcher<? super String>
the matcher used to verify the toString result toStringMatcher)Creates a matcher that matches any examined object whose |
| public static <T> Matcher | hasToString(String
the expected toString result expectedToString)Creates a matcher that matches any examined object whose |
| public static <V> Matcher | hasValue(Matcher<? super V>
the matcher that must be satisfied by at least one value valueMatcher)Creates a matcher for |
| public static <V> Matcher | hasValue(V
the value that satisfying maps must contain value)Creates a matcher for |
| public static Matcher | hasXPath(String
the target xpath xPath, Matcher<String> matcher for the value at the specified xpath valueMatcher)Creates a matcher of |
| public static Matcher | hasXPath(String
the target xpath xPath, NamespaceContext the namespace for matching nodes namespaceContext, Matcher<String> matcher for the value at the specified xpath valueMatcher)Creates a matcher of |
| public static Matcher | hasXPath(String
the target xpath xPath)Creates a matcher of |
| public static Matcher | hasXPath(String
the target xpath xPath, NamespaceContext the namespace for matching nodes namespaceContext)Creates a matcher of |
| public static <T> Matcher | in(Collection<T>
the collection in which matching items must be found collection)Creates a matcher that matches when the examined object is found within the specified collection. |
| public static <T> Matcher | in(T[]
the array in which matching items must be found elements)Creates a matcher that matches when the examined object is found within the specified array. |
| public static <T> Matcher | instanceOf(Class<?> type)
Creates a matcher that matches when the examined object is an instance of the specified |
| public static <T> Matcher | |
| public static <T> Matcher | |
| public static <T> Matcher | |
| public static Matcher | isEmptyOrNullString()
Deprecated
use is(emptyOrNullString()) instead
Creates a matcher of String that matches when the examined string is null, or
has zero length.
|
| public static Matcher | isEmptyString()
Deprecated
use is(emptyString()) instead
Creates a matcher of String that matches when the examined string has zero length.
|
| public static <T> Matcher | isIn(Collection<T>
the collection in which matching items must be found collection)
Deprecated
use is(in(...)) instead
Creates a matcher that matches when the examined object is found within the
specified collection.
|
| public static <T> Matcher | isIn(T[]
the array in which matching items must be found elements)
Deprecated
use is(in(...)) instead
Creates a matcher that matches when the examined object is found within the
specified array.
|
| public static <T> Matcher | isOneOf(T...
the elements amongst which matching items will be found elements)
Deprecated
use is(oneOf(...)) instead
Creates a matcher that matches when the examined object is equal to one of the
specified elements.
|
| public static <E> Matcher | |
| public static <E> Matcher | iterableWithSize(int
the number of items that should be yielded by an examined size)IterableCreates a matcher for |
| public static <T extends Comparable | lessThan(T
the value which, when passed to the compareTo method of the examined object, should return less
than zero value)Creates a matcher of |
| public static <T extends Comparable | lessThanOrEqualTo(T
the value which, when passed to the compareTo method of the examined object, should return less
than or equal to zero value)Creates a matcher of |
| public static Matcher | matchesPattern(Pattern pattern)
Creates a matcher of |
| public static Matcher | matchesPattern(String regex)
Creates a matcher of |
| public static Matcher | Returns: The matcher.the pattern to be used. pattern)Validate a string with a |
| public static Matcher | Returns: The matcher.The regex to be used for the validation. regex)Validate a string with a regex. |
| public static <T> Matcher | |
| public static <T> Matcher | not(T
the value that any examined object should not equal value)A shortcut to the frequently used |
| public static Matcher | |
| public static Matcher | |
| public static <T> Matcher | notNullValue(Class<T>
dummy parameter used to infer the generic type of the returned matcher type)A shortcut to the frequently used |
| public static Matcher | |
| public static <T> Matcher | |
| public static <T> Matcher | oneOf(T...
the elements amongst which matching items will be found elements)Creates a matcher that matches when the examined object is equal to one of the specified elements. |
| public static <T> Matcher | sameInstance(T
the target instance against which others should be assessed target)Creates a matcher that matches only when the examined object is the same instance as the specified target object. |
| public static <B> Matcher | samePropertyValuesAs(B
the bean against which examined beans are compared expectedBean, String... do not check any of these named properties. ignoredProperties)Creates a matcher that matches when the examined object has values for all of its JavaBean properties that are equal to the corresponding values of the specified bean. |
| public static Matcher | startsWith(String
the substring that the returned matcher will expect at the start of any examined string prefix)
Creates a matcher that matches if the examined |
| public static Matcher | startsWithIgnoringCase(String
the substring that the returned matcher will expect at the start of any examined string prefix)
Creates a matcher that matches if the examined assertThat("myStringOfNote", startsWithIgnoringCase("My"))
|
| public static Matcher | stringContainsInOrder(Iterable<String>
the substrings that must be contained within matching strings substrings)Creates a matcher of |
| public static Matcher | stringContainsInOrder(String...
the substrings that must be contained within matching strings substrings)Creates a matcher of |
| public static <T> Matcher | theInstance(T
the target instance against which others should be assessed target)Creates a matcher that matches only when the examined object is the same instance as the specified target object. |
| public static <T> Matcher | typeCompatibleWith(Class<T>
the base class to examine classes against baseType)Creates a matcher of |