Package de.gematik.test.tiger
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 Summary
ConstructorsConstructorDescriptionLocalProxyRbelMessageListener(de.gematik.rbellogger.util.RbelMessagesSupplier messagesSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidstatic voidvoidclears the validatable messages list*List<de.gematik.rbellogger.data.RbelElement>List<de.gematik.rbellogger.data.RbelElement>list of messages received from local Tiger Proxy per step, to be forwarded to workflow UIDeque<de.gematik.rbellogger.data.RbelElement>List of messages received via local Tiger Proxy.static voidstatic voidsetTestingInstance(LocalProxyRbelMessageListener instanceForTesting) voidtriggerNewReceivedMessage(de.gematik.rbellogger.data.RbelElement e)
-
Constructor Details
-
LocalProxyRbelMessageListener
public LocalProxyRbelMessageListener(de.gematik.rbellogger.util.RbelMessagesSupplier messagesSupplier) -
LocalProxyRbelMessageListener
public LocalProxyRbelMessageListener()
-
-
Method Details
-
getInstance
-
initialize
public static void initialize() -
setTestingInstance
-
clearTestingInstance
public static void clearTestingInstance() -
triggerNewReceivedMessage
public void triggerNewReceivedMessage(de.gematik.rbellogger.data.RbelElement e) - Specified by:
triggerNewReceivedMessagein interfacede.gematik.rbellogger.util.IRbelMessageListener
-
clearMessages
public void clearMessages() -
clearAllMessages
public void clearAllMessages() -
getMessages
-
clearValidatableRbelMessages
public void clearValidatableRbelMessages()clears the validatable messages list* -
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
list of messages received from local Tiger Proxy per step, to be forwarded to workflow UI
-