FrontendTestCase

abstract class FrontendTestCase(initialIviServiceTestConfiguration: IviServiceTestConfiguration? = defaultFrontendServiceTestConfiguration) : TestIviActivityTestCase

Base class for frontend tests which use the TestIviApplication.

See TestIviActivityTestCase for more information.

By default, this class configures the TestIviApplication with the map display mock frontend and the main menu frontend and adds the SystemUiMenuItemsServiceMock to the IVI service configuration.

Initializes the SystemUiMenuItemsServiceMock before starting the test when the iviServiceTestConfiguration contains the mock.

Constructors

Link copied to clipboard
fun FrontendTestCase(initialIviServiceTestConfiguration: IviServiceTestConfiguration? = defaultFrontendServiceTestConfiguration)

Types

Link copied to clipboard
object Companion

Inherited properties

Link copied to clipboard
open override val clearSharedPreferencesRule: ClearSharedPreferencesRule
Link copied to clipboard
val dataBindingIdlingResourceRule: TestRule
Link copied to clipboard
val iviActivityTestRuleChain: RuleChain
Link copied to clipboard
Link copied to clipboard
val locationManager: LocationManager
Link copied to clipboard
val locationSimulationPossible: Boolean
Link copied to clipboard
val primaryActivityScenarioState: Lifecycle.State
Link copied to clipboard
val ruleChain: RuleChain
Link copied to clipboard
val serviceRulesChain: RuleChain
Link copied to clipboard
val systemUiIdlingResourceRule: TestRule
Link copied to clipboard
val testLifecycleOwner: TestLifecycleOwner
Link copied to clipboard
val testPackageName: String
Link copied to clipboard
Link copied to clipboard
val webserviceMockUri: String

Functions

Link copied to clipboard
fun initMenuItemsServiceMock()

Inherited functions

Link copied to clipboard
fun configureSystemUiServiceMock()
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
fun hasIviServiceMock(iviServiceMockClass: KClass<out AnyIviServiceBase>): Boolean
Link copied to clipboard
fun initializeTest()
Link copied to clipboard
fun registerTraceEventConsumer(    traceEventConsumer: TraceEventConsumer,     contextRegex: Regex?,     localProcessOnly: Boolean)
Link copied to clipboard
open override fun setOrientationLandscape()
Link copied to clipboard
open override fun setOrientationPortrait()
Link copied to clipboard
fun verifySoftwareInputHidden()
Link copied to clipboard
fun verifySoftwareInputShown()
Link copied to clipboard
fun waitForDebugPanelService()
Link copied to clipboard
fun webserviceMockCaptureYield(description: String)
fun webserviceMockCaptureYield(description: String, durationMs: Long)
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
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