Added in API level 1
TestFailure
open class TestFailure
| kotlin.Any | |
| ↳ | junit.framework.TestFailure |
A TestFailure collects a failed test together with the caught exception.
Summary
Public constructors |
|
|---|---|
|
Constructs a TestFailure with the given test and exception. |
|
Public methods |
|
|---|---|
| open String! | |
| open Test! |
Gets the failed test. |
| open Boolean | |
| open Throwable! |
Gets the thrown exception. |
| open String |
toString()Returns a short description of the failure. |
| open String! |
trace() |
Properties |
|
|---|---|
| Test! | |
| Throwable! | |
Public constructors
<init>
Added in API level 1
TestFailure(
failedTest: Test!,
thrownException: Throwable!)
Constructs a TestFailure with the given test and exception.
Public methods
thrownException
Added in API level 1
open fun thrownException(): Throwable!
Gets the thrown exception.
toString
Added in API level 1
open fun toString(): String
Returns a short description of the failure.
| Return | |
|---|---|
String |
a string representation of the object. |