IviWebServiceMockDependentIviServiceTestCase

abstract class IviWebServiceMockDependentIviServiceTestCase(initialIviServiceTestConfiguration: IviServiceTestConfiguration? = DEFAULT_INITIAL_SERVICE_CONFIG) : IviServiceTestCase

An integration test case which depends on WebserviceMockRule.

Parameters

initialIviServiceTestConfiguration

The initial configuration of IVI services.

Constructors

fun IviWebServiceMockDependentIviServiceTestCase(initialIviServiceTestConfiguration: IviServiceTestConfiguration? = DEFAULT_INITIAL_SERVICE_CONFIG)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val locationSimulationPossible: Boolean
Link copied to clipboard
val webserviceMockDependentTestRuleChain: RuleChain

Ensures that:

Link copied to clipboard
val webserviceMockUri: String

Inherited properties

Link copied to clipboard
open override val clearSharedPreferencesRule: ClearSharedPreferencesRule
Link copied to clipboard
Link copied to clipboard
val locationManager: LocationManager
Link copied to clipboard
val ruleChain: RuleChain
Link copied to clipboard
val serviceRulesChain: RuleChain
Link copied to clipboard
val testLifecycleOwner: TestLifecycleOwner
Link copied to clipboard
val testPackageName: String

Functions

Link copied to clipboard
fun webserviceMockCaptureYield(description: String, durationMs: Long = WebserviceMockRule.DEFAULT_CAPTURE_YIELD_DURATION_MS)

Inherited functions

Link copied to clipboard
open override fun <R> createApiWrapper(iviInstanceId: IviInstanceId, callback: CreateApiCallback<R>): R
Link copied to clipboard
inline fun <T : TraceEventConsumer> createTraceEventConsumer(localProcessOnly: Boolean): T
Link copied to clipboard
open override fun getServiceIdsWrapper(iviInstanceId: IviInstanceId, callback: GetServiceIdsCallback): List<IviServiceId>
Link copied to clipboard
fun hasIviServiceMock(iviServiceMockIdentifier: IviServiceMockIdentifier<*>): Boolean

See the IviServiceRule.hasIviServiceMock overload that takes a IviServiceMockIdentifier instance.

fun hasIviServiceMock(iviServiceMockClass: KClass<out AnyIviServiceBase>): Boolean

See the IviServiceRule.hasIviServiceMock overload that takes a KClass instance.

Link copied to clipboard
fun initializeTest()
Link copied to clipboard
fun registerTraceEventConsumer(    traceEventConsumer: TraceEventConsumer,     contextRegex: Regex?,     localProcessOnly: Boolean)
Link copied to clipboard
open fun setOrientationLandscape()
Link copied to clipboard
open fun setOrientationPortrait()
Link copied to clipboard
fun <T : AnyIviServiceBase, R> withIviServiceMockOnMainThread(iviServiceMockIdentifier: IviServiceMockIdentifier<T>, block: T.() -> R): R
fun <T : AnyIviServiceBase, R> withIviServiceMockOnMainThread(iviServiceMockClass: KClass<T>, block: T.() -> R): R

See the IviServiceRule.withIviServiceMockOnMainThread overload that takes a KClass instance.

Link copied to clipboard
fun <T : AnyIviServiceBase, R> withIviServiceMockOnTestThread(iviServiceMockIdentifier: IviServiceMockIdentifier<T>, block: T.() -> R): R
fun <T : AnyIviServiceBase, R> withIviServiceMockOnTestThread(iviServiceMockClass: KClass<T>, block: T.() -> R): R

See the IviServiceRule.withIviServiceMockOnTestThread overload that takes a KClass instance.