TearDownPassThroughPreparer
public
class
TearDownPassThroughPreparer
extends BaseTargetPreparer
implements
IConfigurationReceiver,
ITargetCleaner
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(ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing. |
void
|
tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
Perform the target cleanup/teardown after testing. |
Public constructors
TearDownPassThroughPreparer
public TearDownPassThroughPreparer ()
Public methods
setConfiguration
public void setConfiguration (IConfiguration configuration)
Injects the IConfiguration
in use.
Parameters | |
---|---|
configuration |
IConfiguration |
setUp
public void setUp (ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing.
Parameters | |
---|---|
device |
ITestDevice : the ITestDevice to prepare. |
buildInfo |
IBuildInfo : data about the build under test. |
tearDown
public void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)
Perform the target cleanup/teardown after testing.
Parameters | |
---|---|
device |
ITestDevice : the ITestDevice to prepare. |
buildInfo |
IBuildInfo : data about the build under test. |
e |
Throwable : if the invocation ended with an exception, this will be the exception that was
caught at the Invocation level. Otherwise, will be null . |
Throws | |
---|---|
DeviceNotAvailableException |