java.lang.Object | |
↳ | org.junit.runner.notification.Failure |
A Failure
holds a description of the failed test and the
exception that was thrown while running it. In most cases the Description
will be of a single test. However, if problems are encountered while constructing the
test (for example, if a BeforeClass
method is not static), it may describe
something other than a single test.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a
Failure with the given description and exception. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience method
| |||||||||||
Convenience method
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructs a Failure
with the given description and exception.
description | a Description of the test that failed |
---|---|
thrownException | the exception that was thrown while running the test |