TestCaseInfo


class TestCaseInfo : Parcelable


Represents a parcelable TestCase. Contains all the information for a test case. Each test method inside a Java test is considered a separate TestCaseInfo. The TestCaseInfo is used to serialize and send Java test case information between the test runner and the remote androidx.test.services.events.run.ITestRunEvent and Android Services.

See Android Parcelable.

Summary

Public constructors

Creates an AnnotationInfo from an Android Parcel.

TestCaseInfo(
    className: String,
    methodName: String,
    methodAnnotations: (Mutable)List<AnnotationInfo!>,
    classAnnotations: (Mutable)List<AnnotationInfo!>
)

Creates a TestCaseInfo.

Public properties

(Mutable)List<AnnotationInfo!>

Annotations on the test class.

String

Name of the test class.

(Mutable)List<AnnotationInfo!>

Annotations on the test method.

String

Name of the test method.

Constants

CREATOR

const val CREATORParcelable.Creator<TestCaseInfo!>!

Public constructors

TestCaseInfo

TestCaseInfo(source: Parcel)

Creates an AnnotationInfo from an Android Parcel.

Parameters
source: Parcel

Android Parcel to read from

TestCaseInfo

TestCaseInfo(
    className: String,
    methodName: String,
    methodAnnotations: (Mutable)List<AnnotationInfo!>,
    classAnnotations: (Mutable)List<AnnotationInfo!>
)

Creates a TestCaseInfo.

Parameters
className: String

Name of the test class

methodName: String

Name of the test method

methodAnnotations: (Mutable)List<AnnotationInfo!>

Annotations on the test method

classAnnotations: (Mutable)List<AnnotationInfo!>

Annotations on the test class

Public functions

describeContents

fun describeContents(): Int

getClassAndMethodName

fun getClassAndMethodName(): String

writeToParcel

fun writeToParcel(parcel: Parcel!, i: Int): Unit

Public properties

classAnnotations

val classAnnotations: (Mutable)List<AnnotationInfo!>

Annotations on the test class.

className

val classNameString

Name of the test class.

methodAnnotations

val methodAnnotations: (Mutable)List<AnnotationInfo!>

Annotations on the test method.

methodName

val methodNameString

Name of the test method.