| Package | Description |
|---|---|
| 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.
|
| org.junit.matchers |
Provides useful additional
Matchers for use with
the Assert.assertThat(Object, org.hamcrest.Matcher)
statement |
| Modifier and Type | Method and Description |
|---|---|
static <LHS> CombinableMatcher.CombinableBothMatcher<LHS> |
CoreMatchers.both(Matcher<? super LHS> matcher)
Creates a matcher that matches when both of the specified matchers match the examined object.
|
| Modifier and Type | Method and Description |
|---|---|
static <LHS> CombinableMatcher.CombinableBothMatcher<LHS> |
CombinableMatcher.both(Matcher<? super LHS> matcher)
Creates a matcher that matches when both of the specified matchers match the examined object.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> CombinableMatcher.CombinableBothMatcher<T> |
JUnitMatchers.both(Matcher<? super T> matcher)
Deprecated.
Please use
CoreMatchers.both(Matcher) instead. |
Copyright © 2002–2020 JUnit. All rights reserved.