|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.experimental.results.PrintableResult
public class PrintableResult
A test result that prints nicely in error messages. This is only intended to be used in JUnit self-tests. For example:
assertThat(testResult(HasExpectedException.class), isSuccessful());
Constructor Summary | |
---|---|
PrintableResult(List<Failure> failures)
A result that includes the given failures |
Method Summary | |
---|---|
int |
failureCount()
Returns the number of failures in this result. |
static PrintableResult |
testResult(Class<?> type)
The result of running JUnit on type |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrintableResult(List<Failure> failures)
failures
Method Detail |
---|
public static PrintableResult testResult(Class<?> type)
type
public String toString()
toString
in class Object
public int failureCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |