TestMethod
public
class
TestMethod
extends Object
| java.lang.Object | |
| ↳ | android.test.suitebuilder.TestMethod |
This class was deprecated
in API level 26.
New tests should be written using the
Android Testing Support Library.
Represents a test to be run. Can be constructed without instantiating the TestCase or even loading the class.
Summary
Public constructors | |
|---|---|
TestMethod(Method method, Class<? extends TestCase> enclosingClass)
|
|
TestMethod(String methodName, Class<? extends TestCase> enclosingClass)
|
|
TestMethod(TestCase testCase)
|
|
Public methods | |
|---|---|
TestCase
|
createTest()
|
boolean
|
equals(Object o)
Indicates whether some other object is "equal to" this one. |
<T extends Annotation>
T
|
getAnnotation(Class<T> annotationClass)
|
Class<? extends TestCase>
|
getEnclosingClass()
|
String
|
getEnclosingClassname()
|
String
|
getName()
|
int
|
hashCode()
Returns a hash code value for the object. |
String
|
toString()
Returns a string representation of the object. |
Inherited methods | |
|---|---|