ShellCommand


@VisibleForTesting
@ExperimentalTestApi
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 functions

abstract Unit

Public constructors

ShellCommand

ShellCommand()

Protected functions

execute

protected abstract fun execute(): Unit