Package ch.ivyteam.ivy.bpm.engine.client
Interface Mocker
-
public interface Mocker
Mocks process elements for testing. Use it to mock UI elements or elements that communicate with external systems like databases, SOAP and REST web services, etc.
Example how to mock an HTML Dialog:
Selector HTML_DIALOG = Selector.select().process().name("ProcurementRequest").element().name().isEqualTo("Registration Form"); bpmClient.mock().element(HTML_DIALOG).with(ProcurementRequest.class, (in, out) -> { out.product = "PC"; out.price = 877.99; out.description = "My old PC broke down" ; });
- Since:
- 9.1
- API:
- This is a public API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Mocker.DataMapper<T>
Provides the input (in) and the output (out) variables so that a tester can map data from in to out and also setups new data on out.static interface
Mocker.WithMock
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mocker.WithMock
element(BpmElement processElement)
Mocks the given element
-
-
-
Method Detail
-
element
Mocker.WithMock element(BpmElement processElement)
Mocks the given element- Parameters:
processElement
-- Returns:
- with
- API:
- This public API is available in Java.
-
-