# TestFailureDetails

@Incubating
interface TestFailureDetails

Contains serializable structural information about a test failure.

#### Since

7.6

#### See also

TestFailure

## Functions

getActual
Link copied to clipboard
@Nullable
abstract fun getActual(): @Nullable String
Returns a string representation of the actual value for an assertion failure.
getActualContent
Link copied to clipboard
abstract fun getActualContent(): @Nullable 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(): @Nullable String
Returns a string representation of the expected value for an assertion failure.
getExpectedContent
Link copied to clipboard
abstract fun getExpectedContent(): @Nullable Array<Byte>
Returns the expected content of a file comparison assertion failure.
getMessage
Link copied to clipboard
@Nullable
abstract fun getMessage(): @Nullable 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.
isAssumptionFailure
Link copied to clipboard
abstract fun isAssumptionFailure(): Boolean
Is this an assumption failure?
isFileComparisonFailure
Link copied to clipboard
abstract fun isFileComparisonFailure(): Boolean
Returns true if the represented failure is recognized as a file comparison failure.
isFrameworkFailure
Link copied to clipboard
@Incubating
open fun isFrameworkFailure(): Boolean
Is this a test-framework failure (as opposed to a failure raised from inside a test method)?