Class Mock

  • Direct Known Subclasses:
    ProcessorProxyMock

    public abstract class Mock
    extends Object
    Parent class for mocks. Different implementations should extend it.
    • Field Detail

      • testName

        protected String testName
      • returnExchange

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

      • Mock

        public Mock()
    • 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