TestFailureDetails

Contains serializable structural information about a test failure.

Since

7.6

See also

Functions

Link copied to clipboard
@Nullable
abstract fun getActual(): String
Returns a string representation of the actual value for an assertion failure.
Link copied to clipboard
@Nullable
abstract fun getActualContent(): Array<Byte>
Returns the actual content of a file comparison assertion failure.
Link copied to clipboard
abstract fun getClassName(): String
The fully-qualified name of the underlying exception type.
Link copied to clipboard
@Nullable
abstract fun getExpected(): String
Returns a string representation of the expected value for an assertion failure.
Link copied to clipboard
@Nullable
abstract fun getExpectedContent(): Array<Byte>
Returns the expected content of a file comparison assertion failure.
Link copied to clipboard
@Nullable
abstract fun getMessage(): String
Returns the failure message.
Link copied to clipboard
abstract fun getStacktrace(): String
Returns the stacktrace of the failure.
Link copied to clipboard
abstract fun isAssertionFailure(): Boolean
Returns true if the represented failure is recognized as an assertion failure.
Link copied to clipboard
Is this an assumption failure?
Link copied to clipboard
Returns true if the represented failure is recognized as a file comparison failure.