FailureInfo


public final class FailureInfo implements Parcelable


Denotes an android test failure, has details of the failure including stack trace / type and message.

Summary

Constants

static final Parcelable.Creator<FailureInfo>

Public fields

final @Nullable String

The failure message associated with the failure.

final @Nullable String

The type of failure exception.

final @NonNull String

The stack trace associated with the failure.

final @NonNull TestCaseInfo

The test case that caused the failure.

Public constructors

Creates a FailureInfo from android Parcel.

FailureInfo(
    @Nullable String failureMessage,
    @Nullable String failureType,
    @NonNull String stackTrace,
    @NonNull TestCaseInfo testCase
)

Constructor to create a FailureInfo.

Public methods

int
void
writeToParcel(Parcel parcel, int i)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Constants

CREATOR

public static final Parcelable.Creator<FailureInfoCREATOR

Public fields

failureMessage

public final @Nullable String failureMessage

The failure message associated with the failure.

failureType

public final @Nullable String failureType

The type of failure exception. E.g NullPointerException.

stackTrace

public final @NonNull String stackTrace

The stack trace associated with the failure.

testCase

public final @NonNull TestCaseInfo testCase

The test case that caused the failure.

Public constructors

FailureInfo

public FailureInfo(@NonNull Parcel source)

Creates a FailureInfo from android Parcel.

Parameters
@NonNull Parcel source

the android Parcel.

FailureInfo

public FailureInfo(
    @Nullable String failureMessage,
    @Nullable String failureType,
    @NonNull String stackTrace,
    @NonNull TestCaseInfo testCase
)

Constructor to create a FailureInfo.

Public methods

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(Parcel parcel, int i)