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 SummaryFields Modifier and Type Field Description static StringENDPOINT_ID_EXCHANGE_PROPERTYprotected org.apache.camel.ExchangereturnExchangeprotected StringtestName
 - 
Constructor SummaryConstructors Constructor Description Mock()
 - 
Method SummaryAll 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_PROPERTYpublic static final String ENDPOINT_ID_EXCHANGE_PROPERTY - See Also:
- Constant Field Values
 
 - 
testNameprotected String testName 
 - 
returnExchangeprotected org.apache.camel.Exchange returnExchange 
 
- 
 - 
Method Detail- 
setBehaviorpublic abstract void setBehavior(TestExecutionStatus testExecutionStatus) Sets mocks behavior- Parameters:
- testExecutionStatus- that the mock should fill with details of the test run
 
 - 
clearpublic abstract void clear() Clear previously set behaviour for mock.
 - 
getIdpublic String getId() - Returns:
- ID of the Mock
 
 
- 
 
-