|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use CombinableMatcher | |
|---|---|
| org.hamcrest | The stable API defining Matcher and its associated interfaces and classes. |
| org.hamcrest.core | Fundamental matchers of objects and values, and composite matchers. |
| Uses of CombinableMatcher in org.hamcrest |
|---|
| Methods in org.hamcrest that return CombinableMatcher | ||
|---|---|---|
static
|
CoreMatchers.both(Matcher<? super LHS> matcher)
This is useful for fluently combining matchers that must both pass. |
|
static
|
CoreMatchers.either(Matcher<? super LHS> matcher)
This is useful for fluently combining matchers where either may pass, for example: assertThat(string, both(containsString("a")).and(containsString("b"))); |
|
| Uses of CombinableMatcher in org.hamcrest.core |
|---|
| Methods in org.hamcrest.core that return CombinableMatcher | ||
|---|---|---|
CombinableMatcher<T> |
CombinableMatcher.and(Matcher<? super T> other)
|
|
static
|
CombinableMatcher.both(Matcher<? super LHS> matcher)
This is useful for fluently combining matchers that must both pass. |
|
static
|
CombinableMatcher.either(Matcher<? super LHS> matcher)
This is useful for fluently combining matchers where either may pass, for example: assertThat(string, both(containsString("a")).and(containsString("b"))); |
|
CombinableMatcher<T> |
CombinableMatcher.or(Matcher<? super T> other)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||