then
Class: matlab.mock.actions.ThrowException
Namespace: matlab.mock.actions
Action for mock object interaction or action subsequent to throwing exception
Syntax
then(action1)
then(action1,action2)
Description
then(
specifies
an action for mock object interactions.action1
)
then(
specifies
an action and a subsequent action for mock object interactions.action1
,action2
)
Input Arguments
Examples
Tips
Each call to
then
accepts up to two actions. To specify more subsequent actions, use multiple calls tothen
. For example, to specify three actions, useaction1.then(action2).then(action3)
.
Version History
Introduced in R2017a