TestCaseErrorEvent


public class TestCaseErrorEvent extends TestPlatformEvent


This event is sent when an error is encountered while a test case is running. This does not necessarily mean that the test case has failed - not all exceptions are considered fatal.

See also
TestCaseFinishedEvent

to signal an individual test case as completed.

TestRunErrorEvent

to signal errors that are not able to be attributed to an individual test case.

Summary

Public constructors

TestCaseErrorEvent(
    @NonNull TestCaseInfo testCase,
    @NonNull ErrorInfo error,
    @NonNull TimeStamp timeStamp
)

Constructor to create TestCaseErrorEvent.

Public methods

void
writeToParcel(Parcel parcel, int i)

Public fields

error

public final @NonNull ErrorInfo error

testCase

public final @NonNull TestCaseInfo testCase

timeStamp

public final @NonNull TimeStamp timeStamp

Public constructors

TestCaseErrorEvent

public TestCaseErrorEvent(
    @NonNull TestCaseInfo testCase,
    @NonNull ErrorInfo error,
    @NonNull TimeStamp timeStamp
)

Constructor to create TestCaseErrorEvent.

Parameters
@NonNull TestCaseInfo testCase

the test case that should be associated with this error.

@NonNull ErrorInfo error

details of the error that was encountered.

@NonNull TimeStamp timeStamp

time at which this error was encountered.

Public methods

writeToParcel

public void writeToParcel(Parcel parcel, int i)