ShellCommand


@VisibleForTesting
@ExperimentalTestApi
public abstract class ShellCommand


Ideally we wouldn't need this abstraction but since UiAutomation is final we need an abstraction on top to be able to mock it in tests. It also gives us the flexibility to switch to another implementation in the future.

Summary

Public constructors

Protected methods

abstract void

Public constructors

ShellCommand

public ShellCommand()

Protected methods

execute

protected abstract void execute()