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 Details

    • MockFactory

      public MockFactory()
  • Method Details

    • newMockInstance

      public Mock newMockInstance(String testName, org.apache.camel.Exchange returnExchange)
      Creates new mock instance and sets required properties.
      Parameters:
      testName - Name of test case
      returnExchange - Exchange
      Returns:
      creted Mock instance