Package ch.ivyteam.ivy.bpm.engine.client
Interface Mocker.WithMock
- Enclosing interface:
- Mocker
public static interface Mocker.WithMock
- Since:
- 9.1
- API:
- This is a public API.
-
Method Summary
Modifier and TypeMethodDescription<T extends CompositeObject>
voidwith
(Mocker.DataMapper<T> mock) Mocks the element with the given data mapper.<T extends CompositeObject>
voidwith
(Class<T> type, Mocker.DataMapper<T> mock) Mocks the element with the given data mapper.<T extends CompositeObject>
voidwith
(Class<T> type, UnaryOperator<T> mock) Mocks the element with the given mock operator.<T extends CompositeObject>
voidwith
(UnaryOperator<T> mock) Mocks the element with the given mock operator.void
Mocks the element with no action.
-
Method Details
-
withNoAction
void withNoAction()Mocks the element with no action. The mock simply forwards the in process data as output (out=in;
)- API:
- This public API is available in Java.
-
with
Mocks the element with the given mock operator.- Parameters:
mock
- operation that should be executed instead of the element.- API:
- This public API is available in Java.
-
with
Mocks the element with the given mock operator.- Parameters:
type
- process data typemock
- operation that should be executed instead of the UI element.- API:
- This public API is available in Java.
-
with
Mocks the element with the given data mapper.- Parameters:
mock
- operation that should be executed instead of the element.- API:
- This public API is available in Java.
-
with
Mocks the element with the given data mapper.- Parameters:
type
- process data typemock
- operation that should be executed instead of the element.- API:
- This public API is available in Java.
-