{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TestIdentifier

public class TestIdentifier


Identifies a parsed instrumentation test.

This is a copy of com.android.ddmlib.testrunner.TestIdentifier.

Summary

Public constructors

TestIdentifier(@NonNull String className, @NonNull String testName)

Creates a test identifier.

Public methods

@NonNull boolean
@NonNull String

Returns the fully qualified class name of the test.

@NonNull String

Returns the name of the test.

@NonNull int
@NonNull String

Public constructors

TestIdentifier

public TestIdentifier(@NonNull String className, @NonNull String testName)

Creates a test identifier.

Parameters
@NonNull String className

fully qualified class name of the test. Cannot be null.

@NonNull String testName

name of the test. Cannot be null.

Public methods

equals

@NonNull
public boolean equals(@NonNull Object obj)

getClassName

@NonNull
public String getClassName()

Returns the fully qualified class name of the test.

getTestName

@NonNull
public String getTestName()

Returns the name of the test.

hashCode

@NonNull
public int hashCode()

toString

@NonNull
public String toString()