IviServiceApiRule

class IviServiceApiRule(testLifecycleOwner: LifecycleOwner) : ResourceRule

Provides test access to IVI service APIs instances from the test thread.

Constructors

Link copied to clipboard
fun IviServiceApiRule(testLifecycleOwner: LifecycleOwner)

Properties

Link copied to clipboard
val canCreateApiInstances: Boolean

true if the IVI service APIs instances can be created. false if the SUT is not using a Android application that is derived from the IviApplication class.

Functions

Link copied to clipboard
fun <R> createApiWrapper(iviInstanceId: IviInstanceId = IviFunctionalTestCase.defaultIviInstanceId, callback: CreateApiCallback<R>): R

Wrapper around <Service>.createApi() calls.

Link copied to clipboard
fun getServiceIdsWrapper(iviInstanceId: IviInstanceId = IviFunctionalTestCase.defaultIviInstanceId, callback: GetServiceIdsCallback): List<IviServiceId>

Wrapper around <Service>.getServiceIds calls.

Inherited functions

Link copied to clipboard
open override fun apply(baseStatement: Statement, description: Description): Statement