TearDownPassThroughPreparer
public class TearDownPassThroughPreparer
extends BaseTargetPreparer
implements IConfigurationReceiver
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.TearDownPassThroughPreparer |
允许在作为对象包含在配置中的准备器上运行tearDown。
当准备器作为对象包含在配置中而不是ITargetPreparer
时,它的tearDown 将不会被调用。从该准备器引用它将确保调用它的tearDown。
概括
公共构造函数 | |
---|---|
TearDownPassThroughPreparer () |
公共方法 | |
---|---|
void | setConfiguration ( IConfiguration configuration) 注入正在使用的 |
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e)
|
公共构造函数
TearDownPassThroughPreparer
public TearDownPassThroughPreparer ()
公共方法
设置配置
public void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
参数 | |
---|---|
configuration | IConfiguration |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
参数 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投掷 | |
---|---|
DeviceNotAvailableException |