MockAlertPresenter

class MockAlertPresenter(val alert: Alert, setupMocks: Boolean = true) : BaseAlertPresenter

Mock implementation of BaseAlertPresenter

Parameters

alert

The Alert to display

setupMocks

if true this automatically sets up mocks to handle displaying this MockAlertPresenter

Constructors

Link copied to clipboard
constructor(alert: Alert, setupMocks: Boolean = true)

Types

Link copied to clipboard
class Builder(setupMocks: Boolean = true) : BaseAlertPresenter.Builder

Mock implementation of BaseAlertPresenter.Builder

Properties

Link copied to clipboard
Link copied to clipboard

true if the MockAlertPresenter is currently being presented

Link copied to clipboard
val showAsyncMock: MethodMock<PairParameters.Matchers<animated: Boolean, completion: () -> Unit>, PairParameters.MatchersOrCaptor<animated: Boolean, completion: () -> Unit>, PairParameters.Values<animated: Boolean, completion: () -> Unit>, PairParameters<animated: Boolean, completion: () -> Unit>, Unit>

Functions

Link copied to clipboard

Closes the MockAlertPresenter by handling an action

Link copied to clipboard
open override fun dismiss(animated: Boolean)
Link copied to clipboard
open suspend override fun show(animated: Boolean): Alert.Action?
Link copied to clipboard
open override fun showAsync(animated: Boolean, completion: () -> Unit)