Class RbelMessageValidator

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

public class RbelMessageValidator extends Object
  • Field Details

    • FOUND_IN_MESSAGES

      public static final String FOUND_IN_MESSAGES
      See Also:
    • currentRequest

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

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

    • RbelMessageValidator

      public RbelMessageValidator()
    • RbelMessageValidator

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

    • getRbelMessages

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

      public void clearRbelMessages()
    • filterRequestsAndStoreInContext

      public void filterRequestsAndStoreInContext(RequestParameter requestParameter)
    • 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)
    • assertAttributeOfCurrentRequestMatchesAs

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

      public void assertAttributeForMessage(ModeType mode, String oracle, de.gematik.rbellogger.data.RbelElement element)
    • 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)
    • setCurrentRequest

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

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

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

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