Class Mock
- java.lang.Object
-
- de.ikor.sip.foundation.testkit.workflow.givenphase.Mock
-
- Direct Known Subclasses:
ProcessorProxyMock
public abstract class Mock extends Object
Parent class for mocks. Different implementations should extend it.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENDPOINT_ID_EXCHANGE_PROPERTY
protected org.apache.camel.Exchange
returnExchange
protected String
testName
-
Constructor Summary
Constructors Constructor Description Mock()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
clear()
Clear previously set behaviour for mock.String
getId()
abstract void
setBehavior(TestExecutionStatus testExecutionStatus)
Sets mocks behavior
-
-
-
Field Detail
-
ENDPOINT_ID_EXCHANGE_PROPERTY
public static final String ENDPOINT_ID_EXCHANGE_PROPERTY
- See Also:
- Constant Field Values
-
testName
protected String testName
-
returnExchange
protected org.apache.camel.Exchange returnExchange
-
-
Method Detail
-
setBehavior
public abstract void setBehavior(TestExecutionStatus testExecutionStatus)
Sets mocks behavior- Parameters:
testExecutionStatus
- that the mock should fill with details of the test run
-
clear
public abstract void clear()
Clear previously set behaviour for mock.
-
getId
public String getId()
- Returns:
- ID of the Mock
-
-