Package de.gematik.test.tiger.lib.rbel
Class RbelMessageValidator
- java.lang.Object
-
- de.gematik.test.tiger.lib.rbel.RbelMessageValidator
-
public class RbelMessageValidator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TestContextcontextprotected de.gematik.rbellogger.data.RbelElementlastFilteredRequestprotected de.gematik.rbellogger.data.RbelElementlastResponse
-
Constructor Summary
Constructors Constructor Description RbelMessageValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearRBelMessages()voidcompareXMLStructure(String test, String oracle)voidcompareXMLStructure(String test, String oracle, String diffOptionCSV)voidcompareXMLStructure(String test, String oracle, List<Function<org.xmlunit.builder.DiffBuilder,org.xmlunit.builder.DiffBuilder>> diffOptions)booleandoesHostMatch(de.gematik.rbellogger.data.RbelElement req, String hostFilter)booleandoesMethodMatch(de.gematik.rbellogger.data.RbelElement req, String method)booleandoesPathOfMessageMatch(de.gematik.rbellogger.data.RbelElement req, String path)protected Optional<de.gematik.rbellogger.data.RbelElement>filterRequests(String path, String rbelPath, String value, boolean startFromLastRequest, Map<String,Object> context)voidfilterRequestsAndStoreInContext(String path, String rbelPath, String value, boolean startFromLastRequest)de.gematik.rbellogger.data.RbelElementfindElemInLastResponse(String rbelPath)protected de.gematik.rbellogger.data.RbelElementfindRequestByDescription(String path, String rbelPath, String value, boolean startFromLastRequest)List<de.gematik.rbellogger.data.RbelElement>getRbelMessages()
-
-
-
Field Detail
-
lastFilteredRequest
protected de.gematik.rbellogger.data.RbelElement lastFilteredRequest
-
lastResponse
protected de.gematik.rbellogger.data.RbelElement lastResponse
-
context
protected TestContext context
-
-
Method Detail
-
getRbelMessages
public List<de.gematik.rbellogger.data.RbelElement> getRbelMessages()
-
clearRBelMessages
public void clearRBelMessages()
-
filterRequestsAndStoreInContext
public void filterRequestsAndStoreInContext(String path, String rbelPath, String value, boolean startFromLastRequest)
-
findRequestByDescription
protected de.gematik.rbellogger.data.RbelElement findRequestByDescription(String path, String rbelPath, String value, boolean startFromLastRequest)
-
filterRequests
protected Optional<de.gematik.rbellogger.data.RbelElement> filterRequests(String path, String rbelPath, String value, boolean startFromLastRequest, Map<String,Object> context)
-
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)
-
compareXMLStructure
public void compareXMLStructure(String test, String oracle, List<Function<org.xmlunit.builder.DiffBuilder,org.xmlunit.builder.DiffBuilder>> diffOptions)
-
compareXMLStructure
public void compareXMLStructure(String test, String oracle, String diffOptionCSV)
-
findElemInLastResponse
public de.gematik.rbellogger.data.RbelElement findElemInLastResponse(String rbelPath)
-
-