|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.junit.experimental.results.ResultMatchers
public class ResultMatchers
Matchers on a PrintableResult, to enable JUnit self-tests. For example:
assertThat(testResult(HasExpectedException.class), isSuccessful());
Constructor Summary | |
---|---|
ResultMatchers()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultMatchers()
Method Detail |
---|
public staticisSuccessful()
public staticfailureCountIs(int count)
count
failures
public statichasSingleFailureContaining(java.lang.String string)
string
public statichasFailureContaining(java.lang.String string)
string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |