CompanionAwareTest
public
abstract
class
CompanionAwareTest
extends Object
implements
IDeviceTest,
IRemoteTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.CompanionAwareTest |
Base test class that encapsulates boilerpate of getting and checking companion device
Subclass may call getCompanion()
to retrieve the allocated companion. Must be used
in conjunction with an implementation of CompanionAllocator
Summary
Public constructors | |
---|---|
CompanionAwareTest()
|
Protected methods | |
---|---|
ITestDevice
|
getCompanion()
Fetches the companion device allocated for the primary device |
Public constructors
CompanionAwareTest
public CompanionAwareTest ()
Protected methods
getCompanion
protected ITestDevice getCompanion ()
Fetches the companion device allocated for the primary device
Returns | |
---|---|
ITestDevice |
the allocated companion device |
Throws | |
---|---|
RuntimeException |
if no companion device has been allocated |