ToggleActionMediaControlVerifier

@IviExperimental(reasons = [])
class ToggleActionMediaControlVerifier<Control : ToggleActionMediaControl>(    objectFactory: (MediaControlContext) -> Control,     enableAction: Action,     disableAction: Action)

Simple verification class for ToggleActionMediaControl classes.

Verifies the necessary conditions for availability, activation, and conversion to action. This only checks for the states of the ToggleActionMediaControl: any additional behavior must be verified separately.

Parameters

objectFactory

A lambda to generate SUT objects.

enableAction

The Action that is sent by a disabled SUT to enable it.

disableAction

The Action that is sent by an enabled SUT to disable it.

Constructors

Link copied to clipboard
fun <Control : ToggleActionMediaControl> ToggleActionMediaControlVerifier(    objectFactory: (MediaControlContext) -> Control,     enableAction: Action,     disableAction: Action)