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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <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
withNoAction()
Mocks the element with no action.
-
-
-
Method Detail
-
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
<T extends CompositeObject> void with(UnaryOperator<T> mock)
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
<T extends CompositeObject> void with(Class<T> type, UnaryOperator<T> mock)
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
<T extends CompositeObject> void with(Mocker.DataMapper<T> mock)
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
<T extends CompositeObject> void with(Class<T> type, Mocker.DataMapper<T> mock)
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.
-
-