TestRunInfo


public final class TestRunInfo implements Parcelable


Represents a parcelable TestRun. Contains all the information for a test run. Each test class or test suite inside a Java test is considered a separate TestRunInfo.

See Android Parcelable.

Summary

Constants

static final Parcelable.Creator<TestRunInfo>

Public fields

final @NonNull List<TestCaseInfo>

Test cases within this test run

final @NonNull String

Name of this test run

Public constructors

Creates an TestRunInfo from an Android Parcel.

TestRunInfo(
    @NonNull String testRunName,
    @NonNull List<TestCaseInfo> testCases
)

Creates a TestRunInfo.

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<TestRunInfoCREATOR

Public fields

testCases

public final @NonNull List<TestCaseInfotestCases

Test cases within this test run

testRunName

public final @NonNull String testRunName

Name of this test run

Public constructors

TestRunInfo

public TestRunInfo(@NonNull Parcel source)

Creates an TestRunInfo from an Android Parcel.

Parameters
@NonNull Parcel source

Android Parcel to read from

TestRunInfo

public TestRunInfo(
    @NonNull String testRunName,
    @NonNull List<TestCaseInfo> testCases
)

Creates a TestRunInfo.

Parameters
@NonNull String testRunName

Name of this test run. Usually the class containing the tests to be run, (e.g. foo.bar.MyTests)

@NonNull List<TestCaseInfo> testCases

Tests that are part of this test run.

Public methods

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(Parcel parcel, int i)