Class MockFactory
java.lang.Object
one.x1f.sip.foundation.testkit.workflow.givenphase.MockFactory
@Component
@Scope(value="prototype",
proxyMode=TARGET_CLASS)
public class MockFactory
extends Object
Factory class used for creation of external call mocks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewMockInstance
(String testName, org.apache.camel.Exchange returnExchange) Creates new mock instance and sets required properties.
-
Constructor Details
-
MockFactory
public MockFactory()
-
-
Method Details
-
newMockInstance
Creates new mock instance and sets required properties.- Parameters:
testName
- Name of test casereturnExchange
-Exchange
- Returns:
- creted
Mock
instance
-