MatcherAssert
class with JUnit 4.9 / Hamcrest 1.3@Deprecated
public abstract class MatcherAssertionErrors
extends java.lang.Object
MatcherAssert
that removes the need to
depend on "hamcrest-all" when using Hamcrest 1.1 and also maintains backward
compatibility with Hamcrest 1.1 (also embedded in JUnit 4.4 through 4.8).Constructor and Description |
---|
MatcherAssertionErrors()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
assertThat(java.lang.String reason,
T actual,
org.hamcrest.Matcher<T> matcher)
Deprecated.
Assert that the given matcher matches the actual value.
|
static <T> void |
assertThat(T actual,
org.hamcrest.Matcher<T> matcher)
Deprecated.
Assert that the given matcher matches the actual value.
|
public static <T> void assertThat(T actual, org.hamcrest.Matcher<T> matcher)
T
- the static type accepted by the matcheractual
- the value to match againstmatcher
- the matcherpublic static <T> void assertThat(java.lang.String reason, T actual, org.hamcrest.Matcher<T> matcher)
T
- the static type accepted by the matcherreason
- additional information about the erroractual
- the value to match againstmatcher
- the matcher