Class LocalProxyRbelMessageListener

java.lang.Object
de.gematik.test.tiger.LocalProxyRbelMessageListener
All Implemented Interfaces:
de.gematik.rbellogger.util.IRbelMessageListener

public class LocalProxyRbelMessageListener extends Object implements de.gematik.rbellogger.util.IRbelMessageListener
This class links the local Tiger Proxy with the glue code / test suite.

Provides and Manages a NON thread safe RbelMessageProvider with three lists. One for reuse by Tiger validation steps, one for messages being associated with the current test step, used by the Workflow UI and one internal for later usage.

ATTENTION! As of now Tiger does not support collecting Rbel messages in a "thread safe" way, so that messages sent in parallel test execution scenarios are tracked. If you do run Tiger in parallel test execution, you must deal with concurrency of RBel messages yourself.

  • Constructor Details

    • LocalProxyRbelMessageListener

      public LocalProxyRbelMessageListener(de.gematik.rbellogger.util.RbelMessagesSupplier messagesSupplier)
    • LocalProxyRbelMessageListener

      public LocalProxyRbelMessageListener()
  • Method Details

    • getInstance

      public static LocalProxyRbelMessageListener getInstance()
    • initialize

      public static void initialize()
    • setTestingInstance

      public static void setTestingInstance(LocalProxyRbelMessageListener instanceForTesting)
    • clearTestingInstance

      public static void clearTestingInstance()
    • triggerNewReceivedMessage

      public void triggerNewReceivedMessage(de.gematik.rbellogger.data.RbelElement e)
      Specified by:
      triggerNewReceivedMessage in interface de.gematik.rbellogger.util.IRbelMessageListener
    • clearMessages

      public void clearMessages()
    • clearAllMessages

      public void clearAllMessages()
    • getMessages

      public List<de.gematik.rbellogger.data.RbelElement> getMessages()
    • clearValidatableRbelMessages

      public void clearValidatableRbelMessages()
      clears the validatable messages list*
    • getValidatableRbelMessages

      public Deque<de.gematik.rbellogger.data.RbelElement> getValidatableRbelMessages()
      List of messages received via local Tiger Proxy. It is used by the TGR validation steps. The list is not cleared at the end of / start of new scenarios!
    • getStepRbelMessages

      public List<de.gematik.rbellogger.data.RbelElement> getStepRbelMessages()
      list of messages received from local Tiger Proxy per step, to be forwarded to workflow UI