Class: matlab.mock.MethodCallBehavior
Package: matlab.mock
Specify mock object method behavior
when(behavior,action)
when(
specifies
the action that a mock object method takes when it is called with
the inputs defined by behavior
,action
)behavior
.
matlab.mock.actions.AssignOutputs
| matlab.mock.actions.DoNothing
| matlab.mock.actions.Invoke
| matlab.mock.actions.ThrowException