IviActivityTestCase

@IviExperimental(reasons = [])
abstract class IviActivityTestCase(activityIntent: Intent) : IviFunctionalTestCase

Base class for tests that require an IVI activity to be launched.

Constructors

Link copied to clipboard
fun IviActivityTestCase(activityIntent: Intent)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Ensures that LiveData changes are processed in the view through data binding before verifying the view's state through Espresso.

Link copied to clipboard

Ensures that:

Link copied to clipboard

true if location simulation is possible. If false, location simulation is not possible because the SUT is not configured with the LocationSimulationService or the mock_location permission is not granted.

Link copied to clipboard

The state of the primary activity.

Inherited properties

Link copied to clipboard
open override val clearSharedPreferencesRule: ClearSharedPreferencesRule
Link copied to clipboard
Link copied to clipboard
val ruleChain: RuleChain
Link copied to clipboard
Link copied to clipboard
val testLifecycleOwner: TestLifecycleOwner
Link copied to clipboard

Functions

Link copied to clipboard
open override fun restoreDefaultLocale()

Ensures system localization settings are always reset to default

Link copied to clipboard
open override fun setOrientationLandscape()
Link copied to clipboard
open override fun setOrientationPortrait()
Link copied to clipboard
fun setResolution(adaptivenessBucket: AdaptivenessBucket)

Sets the display resolution to the default width and height as defined in the adaptivenessBucket.

Link copied to clipboard

Verifies if Android soft input is hidden.

Link copied to clipboard

Verifies if Android soft input is shown.

Inherited functions

Link copied to clipboard
inline fun <T : TraceEventConsumer> createTraceEventConsumer(localProcessOnly: Boolean = false): T

Creates a TraceEventConsumer that can be used to verify whether trace events are generated during a test. See TraceEventConsumersRule for description and example usages.

Link copied to clipboard
Link copied to clipboard
fun registerTraceEventConsumer(traceEventConsumer: TraceEventConsumer, contextRegex: Regex?, localProcessOnly: Boolean = false)

Do not use. Use createTraceEventConsumer instead.