Added in API level 1
Deprecated in API level 26

TestMethod


open class TestMethod
kotlin.Any
   ↳ android.test.suitebuilder.TestMethod

Represents a test to be run. Can be constructed without instantiating the TestCase or even loading the class.

Summary

Public constructors
TestMethod(method: Method!, enclosingClass: Class<out TestCase!>!)

TestMethod(methodName: String!, enclosingClass: Class<out TestCase!>!)

TestMethod(testCase: TestCase!)

Public methods
open TestCase!

open Boolean
equals(other: Any?)

open T
getAnnotation(annotationClass: Class<T>!)

open Class<out TestCase!>!

open String!

open String!

open Int

open String

Public constructors

TestMethod

Added in API level 1
TestMethod(
    method: Method!,
    enclosingClass: Class<out TestCase!>!)

TestMethod

Added in API level 3
TestMethod(
    methodName: String!,
    enclosingClass: Class<out TestCase!>!)

TestMethod

Added in API level 1
TestMethod(testCase: TestCase!)

Public methods

createTest

Added in API level 1
open fun createTest(): TestCase!

Deprecated: Deprecated in Java.

equals

Added in API level 1
open fun equals(other: Any?): Boolean

Deprecated: Deprecated in Java.

Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getAnnotation

Added in API level 1
open fun <T : Annotation!> getAnnotation(annotationClass: Class<T>!): T

Deprecated: Deprecated in Java.

getEnclosingClass

Added in API level 1
open fun getEnclosingClass(): Class<out TestCase!>!

Deprecated: Deprecated in Java.

getEnclosingClassname

Added in API level 1
open fun getEnclosingClassname(): String!

Deprecated: Deprecated in Java.

getName

Added in API level 1
open fun getName(): String!

Deprecated: Deprecated in Java.

hashCode

Added in API level 1
open fun hashCode(): Int

Deprecated: Deprecated in Java.

Return
Int a hash code value for this object.

toString

Added in API level 1
open fun toString(): String

Deprecated: Deprecated in Java.

Return
String a string representation of the object.