TearDownPassThroughPreparer
public
class
TearDownPassThroughPreparer
extends BaseTargetPreparer
implements
IConfigurationReceiver
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.TearDownPassThroughPreparer | |
Allows for running tearDown on preparers that are included in a config as an object.
When a preparer is included as an object in a config rather than an ITargetPreparer,
it's tearDown will not be called. Referencing it from this preparer will make sure that it's
tearDown will be called.
Summary
Public constructors | |
|---|---|
TearDownPassThroughPreparer()
|
|
Public methods | |
|---|---|
void
|
setConfiguration(IConfiguration configuration)
Injects the |
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Public constructors
TearDownPassThroughPreparer
public TearDownPassThroughPreparer ()
Public methods
setConfiguration
public void setConfiguration (IConfiguration configuration)
Injects the IConfiguration in use.
| Parameters | |
|---|---|
configuration |
IConfiguration |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| Parameters | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| Throws | |
|---|---|
DeviceNotAvailableException |
|