public class ResultMatchers
extends java.lang.Object
assertThat(testResult(HasExpectedException.class), isSuccessful());
Constructor and Description |
---|
ResultMatchers() |
Modifier and Type | Method and Description |
---|---|
static |
failureCountIs(int count)
Matches if there are
count failures |
static |
hasFailureContaining(java.lang.String string)
Matches if the result has one or more failures, and at least one of them
contains
string |
static |
hasSingleFailureContaining(java.lang.String string)
Matches if the result has exactly one failure, and it contains
string |
static |
isSuccessful()
Matches if the tests are all successful
|
public staticisSuccessful()
public staticfailureCountIs(int count)
count
failurespublic statichasSingleFailureContaining(java.lang.String string)
string
public statichasFailureContaining(java.lang.String string)
string