StubTest

public class StubTest
extends Object implements IAbiReceiver, IConfigurationReceiver, IShardableTest

java.lang.Object
   ↳ com.android.tradefed.testtype.StubTest


Implementacja pustego testu bez działania.

Podsumowanie

Stałe

String DNAE_MESSAGE

Publiczne konstruktory

StubTest()

Metody publiczne

IAbi getAbi()
IConfiguration getConfiguration()
boolean getRunTest()
void run(TestInformation testInfo, ITestInvocationListener listener)

Przeprowadza testy i przekazuje wyniki odbiorcy.

void setAbi(IAbi abi)
void setConfiguration(IConfiguration configuration)

Wstawia używany element IConfiguration.

split()

Podziel test na fragmenty, które można uruchamiać osobno.

String toString()

Stałe

DNAE_MESSAGE

public static final String DNAE_MESSAGE

Wartość stała: "StubTest DeviceNotAvailableException"

Publiczne konstruktory

StubTest

public StubTest ()

Metody publiczne

getAbi

public IAbi getAbi ()

Zwroty
IAbi

getConfiguration

public IConfiguration getConfiguration ()

Zwroty
IConfiguration

getRunTest

public boolean getRunTest ()

Zwroty
boolean

home run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Przeprowadza testy i przekazuje wyniki odbiorcy.

Parametry
testInfo TestInformation: Obiekt TestInformation zawierający przydatne informacje do przeprowadzania testów.

listener ITestInvocationListener: ITestInvocationListener wyników testu

Zgłasza
DeviceNotAvailableException

setAbi

public void setAbi (IAbi abi)

Parametry
abi IAbi

setConfiguration

public void setConfiguration (IConfiguration configuration)

Wstawia używany element IConfiguration.

Parametry
configuration IConfiguration

podziel

public  split ()

Podziel test na fragmenty, które można uruchamiać osobno.

Musi to być deterministyczne i zawsze zwracać tę samą listę IRemoteTest w przypadku tych samych danych wejściowych.

Ta funkcja zostanie wywołana przed wykonaniem testu, więc wstrzyknięte zależności (np. ITestDevice dla IDeviceTest) mogą mieć wartość null.

Zwroty
zbiór podtestów do wykonania osobno lub null, jeśli test nie jest obecnie podzielony na części.

toString

public String toString ()

Zwroty
String