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 Details

    • ENDPOINT_ID_EXCHANGE_PROPERTY

      public static final String ENDPOINT_ID_EXCHANGE_PROPERTY
      See Also:
    • testName

      protected String testName
    • returnExchange

      protected org.apache.camel.Exchange returnExchange
  • Constructor Details

    • Mock

      public Mock()
  • Method Details

    • 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