@Deprecated public interface TestCase extends Runnable
Just implementing Runnable is enough for many test cases. If you have additional setup or teardown, this interface might be for you, especially if you need to share it between different test cases, or your teardown code must execute regardless of whether your test passed.
See the android.test package documentation (click the more... link) for a full description
Modifier and Type | Method and Description |
---|---|
void |
setUp(Context context)
Deprecated.
Called before run() is called.
|
void |
tearDown()
Deprecated.
Called after run() is called, even if run() threw an exception, but
not if setUp() threw an execption.
|
void setUp(Context context)
void tearDown()