public class ResultMatchers
extends java.lang.Object
assertThat(testResult(HasExpectedException.class), isSuccessful());
Constructor and Description |
---|
ResultMatchers()
Deprecated.
will be private soon.
|
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<PrintableResult> |
failureCountIs(int count)
Matches if there are
count failures |
static org.hamcrest.Matcher<PrintableResult> |
hasFailureContaining(java.lang.String string)
Matches if the result has one or more failures, and at least one of them
contains
string |
static org.hamcrest.Matcher<java.lang.Object> |
hasSingleFailureContaining(java.lang.String string)
Matches if the result has exactly one failure, and it contains
string |
static org.hamcrest.Matcher<PrintableResult> |
hasSingleFailureMatching(org.hamcrest.Matcher<java.lang.Throwable> matcher)
Matches if the result has exactly one failure matching the given matcher.
|
static org.hamcrest.Matcher<PrintableResult> |
isSuccessful()
Matches if the tests are all successful
|
@Deprecated public ResultMatchers()
public static org.hamcrest.Matcher<PrintableResult> isSuccessful()
public static org.hamcrest.Matcher<PrintableResult> failureCountIs(int count)
count
failurespublic static org.hamcrest.Matcher<java.lang.Object> hasSingleFailureContaining(java.lang.String string)
string
public static org.hamcrest.Matcher<PrintableResult> hasSingleFailureMatching(org.hamcrest.Matcher<java.lang.Throwable> matcher)
public static org.hamcrest.Matcher<PrintableResult> hasFailureContaining(java.lang.String string)
string