Class RbelMessageValidator

java.lang.Object
de.gematik.test.tiger.lib.rbel.RbelMessageValidator

public class RbelMessageValidator extends Object
  • Field Details

    • RBEL_NAMESPACE

      public static final String RBEL_NAMESPACE
      See Also:
    • FOUND_IN_MESSAGES

      public static final String FOUND_IN_MESSAGES
      See Also:
    • RBEL_REQUEST_TIMEOUT

      public static final de.gematik.test.tiger.common.config.TigerTypedConfigurationKey<Integer> RBEL_REQUEST_TIMEOUT
    • currentRequest

      protected de.gematik.rbellogger.data.RbelElement currentRequest
    • currentResponse

      protected de.gematik.rbellogger.data.RbelElement currentResponse
  • Constructor Details

    • RbelMessageValidator

      @Deprecated(forRemoval=true) public RbelMessageValidator(TigerTestEnvMgr tigerTestEnvMgr, de.gematik.test.tiger.proxy.TigerProxy tigerProxy)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This constructor is due to be removed. Please use the constructor with the additional parameter instead.
    • RbelMessageValidator

      public RbelMessageValidator(TigerTestEnvMgr tigerTestEnvMgr, de.gematik.test.tiger.proxy.TigerProxy tigerProxy, LocalProxyRbelMessageListener localProxyRbelMessageListener)
  • Method Details

    • getInstance

      public static RbelMessageValidator getInstance()
    • clearInstance

      public static void clearInstance()
    • getRbelMessages

      public List<de.gematik.rbellogger.data.RbelElement> getRbelMessages()
    • clearRbelMessages

      public void clearRbelMessages()
    • filterRequestsAndStoreInContext

      public void filterRequestsAndStoreInContext(RequestParameter requestParameter)
    • clearCurrentMessages

      public void clearCurrentMessages()
    • waitForMessageToBePresent

      public de.gematik.rbellogger.data.RbelElement waitForMessageToBePresent(RequestParameter requestParameter)
    • findMessageByDescription

      protected de.gematik.rbellogger.data.RbelElement findMessageByDescription(RequestParameter requestParameter)
    • filterRequests

      protected Optional<de.gematik.rbellogger.data.RbelElement> filterRequests(RequestParameter requestParameter, Optional<de.gematik.rbellogger.data.RbelElement> startFromMessageInclusively)
    • doesPathOfMessageMatch

      public boolean doesPathOfMessageMatch(de.gematik.rbellogger.data.RbelElement req, String path)
    • doesHostMatch

      public boolean doesHostMatch(de.gematik.rbellogger.data.RbelElement req, String hostFilter)
    • doesMethodMatch

      public boolean doesMethodMatch(de.gematik.rbellogger.data.RbelElement req, String method)
    • assertAttributeOfCurrentResponseMatches

      public void assertAttributeOfCurrentResponseMatches(String rbelPath, String value, boolean shouldMatch)
    • assertAttributeOfCurrentRequestMatches

      public void assertAttributeOfCurrentRequestMatches(String rbelPath, String value, boolean shouldMatch)
    • assertAttributeOfCurrentResponseMatchesAs

      public void assertAttributeOfCurrentResponseMatchesAs(String rbelPath, ModeType mode, String oracle, String diffOptionCsv)
    • assertAttributeOfCurrentRequestMatchesAs

      public void assertAttributeOfCurrentRequestMatchesAs(String rbelPath, ModeType mode, String oracle)
    • assertAttributeForMessagesMatchAs

      public void assertAttributeForMessagesMatchAs(ModeType mode, String oracle, List<de.gematik.rbellogger.data.RbelElement> elements, String diffOptionCSV)
    • compareXMLStructure

      public void compareXMLStructure(String test, String oracle, List<UnaryOperator<org.xmlunit.builder.DiffBuilder>> diffOptions)
    • compareXMLStructure

      public void compareXMLStructure(String test, String oracle)
    • compareXMLStructure

      public void compareXMLStructure(String test, String oracle, String diffOptionCSV)
    • compareXMLStructureOfRbelElement

      public void compareXMLStructureOfRbelElement(de.gematik.rbellogger.data.RbelElement el, String oracle, String diffOptionCSV)
    • findElementInCurrentResponse

      public de.gematik.rbellogger.data.RbelElement findElementInCurrentResponse(String rbelPath)
    • findElementInCurrentRequest

      public de.gematik.rbellogger.data.RbelElement findElementInCurrentRequest(String rbelPath)
    • findElementsInCurrentResponse

      public List<de.gematik.rbellogger.data.RbelElement> findElementsInCurrentResponse(String rbelPath)
    • findElementsInCurrentRequest

      public List<de.gematik.rbellogger.data.RbelElement> findElementsInCurrentRequest(String rbelPath)
    • findAnyMessageMatchingAtNode

      public void findAnyMessageMatchingAtNode(String rbelPath, String value)
    • findLastRequest

      public void findLastRequest()
    • readTgrFile

      public void readTgrFile(String filePath)
    • getValueOrContentString

      public static String getValueOrContentString(de.gematik.rbellogger.data.RbelElement elem)
    • setCurrentRequest

      public void setCurrentRequest(de.gematik.rbellogger.data.RbelElement currentRequest)
    • getCurrentRequest

      public de.gematik.rbellogger.data.RbelElement getCurrentRequest()
    • setCurrentResponse

      protected void setCurrentResponse(de.gematik.rbellogger.data.RbelElement currentResponse)
    • getCurrentResponse

      public de.gematik.rbellogger.data.RbelElement getCurrentResponse()