SingleActionMediaControlVerifier

@IviExperimental(reasons = [])
class SingleActionMediaControlVerifier<Control : SingleActionMediaControl>(objectFactory: (MediaControlContext) -> Control, activeAction: Action, verifyVisibility: Boolean = true)

Simple verification class for SingleActionMediaControl classes.

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

Parameters

objectFactory

A lambda to generate SUT objects.

activeAction

The Action that is sent by the SUT when launched.

verifyVisibility

If false, the control is assumed to always be visible and its visibility does not get tested.

Constructors

Link copied to clipboard
constructor(objectFactory: (MediaControlContext) -> Control, activeAction: Action, verifyVisibility: Boolean = true)