| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CombinableMatcher | |
| public static <LHS> CombinableMatcher. | |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public static <LHS> CombinableMatcher. | |
| protected boolean | matchesSafely(T item, Description mismatch)
Implements abstract org. |
| public CombinableMatcher | |
| private ArrayList |
| matcher | back to summary |
|---|---|
| private final Matcher<? super T> matcher | |
| CombinableMatcher | back to summary |
|---|---|
| public CombinableMatcher(Matcher<? super T> matcher) | |
| and | back to summary |
|---|---|
| public CombinableMatcher | |
| both | back to summary |
|---|---|
| public static <LHS> CombinableMatcher. Creates a matcher that matches when both of the specified matchers match the examined object. For example: assertThat("fab", both(containsString("a")).and(containsString("b")))
| |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| either | back to summary |
|---|---|
| public static <LHS> CombinableMatcher. Creates a matcher that matches when either of the specified matchers match the examined object. For example: assertThat("fan", either(containsString("a")).and(containsString("b")))
| |
| matchesSafely | back to summary |
|---|---|
| protected boolean matchesSafely(T item, Description mismatch) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |
| or | back to summary |
|---|---|
| public CombinableMatcher | |
| templatedListWith | back to summary |
|---|---|
| private ArrayList | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CombinableMatcher |
| first | back to summary |
|---|---|
| private final Matcher<? super X> first | |
| CombinableBothMatcher | back to summary |
|---|---|
| public CombinableBothMatcher(Matcher<? super X> matcher) | |
| and | back to summary |
|---|---|
| public CombinableMatcher | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CombinableMatcher |
| first | back to summary |
|---|---|
| private final Matcher<? super X> first | |
| CombinableEitherMatcher | back to summary |
|---|---|
| public CombinableEitherMatcher(Matcher<? super X> matcher) | |
| or | back to summary |
|---|---|
| public CombinableMatcher | |