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 |