TestMethod
open classTestMethod
| 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 | |
| open T |
getAnnotation(annotationClass: Class<T>!) |
| open Class<out TestCase!>! | |
| open String! | |
| open String! |
getName() |
| open Int |
hashCode() |
| open String |
toString() |
Public constructors
TestMethod
Added in API level 3
TestMethod(
methodName: String!,
enclosingClass: Class<out TestCase!>!)
Public methods
equals
Added in API level 1
open funequals(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 fungetEnclosingClass(): Class<out TestCase!>!
Deprecated: Deprecated in Java.
getEnclosingClassname
Added in API level 1
open fungetEnclosingClassname(): String!
Deprecated: Deprecated in Java.
hashCode
Added in API level 1
open funhashCode(): Int
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Int |
a hash code value for this object. |
toString
Added in API level 1
open funtoString(): String
Deprecated: Deprecated in Java.
| Return | |
|---|---|
String |
a string representation of the object. |