# TestFailureDetails

@Incubating
interface TestFailureDetails(source)

Contains serializable structural information about a test failure.

#### Since

7.6

#### See also

TestFailure

## Functions

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