IDisableable

public interface IDisableable

com.android.tradefed.util.IDisableable


Interface that describes a Tradefed object that can be disabled. A disabled object will be skipped and not called at all.

Summary

Public methods

default boolean isDisabled()

Returns True if entire object disabled (skip both setup and teardown).

default boolean isTearDownDisabled()

Returns True if just teardown should be skipped.

default void setDisable(boolean isDisabled)

Sets whether the object should be disabled.

default void setDisableTearDown(boolean isDisabled)

Sets whether the teardown step in the object should be skipped.

Public methods

isDisabled

public boolean isDisabled ()

Returns True if entire object disabled (skip both setup and teardown). False otherwise.

Returns
boolean

isTearDownDisabled

public boolean isTearDownDisabled ()

Returns True if just teardown should be skipped. False otherwise.

Returns
boolean

setDisable

public void setDisable (boolean isDisabled)

Sets whether the object should be disabled. Disabled means that both setup and teardown steps should be skipped. Can be use to make an object disabled by default in the default constructor.

Parameters
isDisabled boolean: the state the object should be put in.

setDisableTearDown

public void setDisableTearDown (boolean isDisabled)

Sets whether the teardown step in the object should be skipped. Setup step is still done.

Parameters
isDisabled boolean: the state the object should be put in.