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 StringENDPOINT_ID_EXCHANGE_PROPERTYprotected org.apache.camel.ExchangereturnExchangeprotected StringtestName
-
Constructor Summary
Constructors Constructor Description Mock()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidclear()Clear previously set behaviour for mock.StringgetId()abstract voidsetBehavior(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
-
-