
Package org.hl7.fhir.r5.test.utils
Class CompareUtilities
java.lang.Object
org.hl7.fhir.utilities.tests.BaseTestingUtilities
org.hl7.fhir.r5.test.utils.CompareUtilities
-
Field Summary
Fields inherited from class org.hl7.fhir.utilities.tests.BaseTestingUtilities
silent
-
Constructor Summary
ConstructorsConstructorDescriptionCompareUtilities
(Set<String> modes) CompareUtilities
(Set<String> modes, org.hl7.fhir.utilities.json.model.JsonObject externals) CompareUtilities
(Set<String> modes, org.hl7.fhir.utilities.json.model.JsonObject externals, Map<String, String> variables) -
Method Summary
Modifier and TypeMethodDescriptioncheckJsonIsSame
(String id, String expected, String actual) checkJsonSrcIsSame
(String id, String expected, String actual) checkJsonSrcIsSame
(String id, String expectedString, String actualString, boolean showDiff) checkTextIsSame
(String id, String expected, String actual) checkTextIsSame
(String id, String expectedString, String actualString, boolean showDiff) checkXMLIsSame
(String id, InputStream expected, InputStream actual) checkXMLIsSame
(String id, String expected, String actual) createNotEqualMessage
(String id, String message, String expected, String actual) boolean
in pattern mode, the comparison is only looking to find the expected properties.setPatternMode
(boolean patternMode) Methods inherited from class org.hl7.fhir.utilities.tests.BaseTestingUtilities
createParentDirIfNotExists, findTestResource, loadTestResource, loadTestResourceBytes, loadTestResourceStream, setFhirTestCasesDirectory, tempFile, tempFolder
-
Constructor Details
-
CompareUtilities
public CompareUtilities() -
CompareUtilities
-
CompareUtilities
-
CompareUtilities
-
-
Method Details
-
isPatternMode
in pattern mode, the comparison is only looking to find the expected properties. anything else is ignored- Returns:
-
setPatternMode
-
createNotEqualMessage
-
checkXMLIsSame
- Throws:
Exception
-
checkXMLIsSame
- Throws:
Exception
-
checkJsonSrcIsSame
public String checkJsonSrcIsSame(String id, String expected, String actual) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkJsonSrcIsSame
public String checkJsonSrcIsSame(String id, String expectedString, String actualString, boolean showDiff) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkJsonIsSame
public String checkJsonIsSame(String id, String expected, String actual) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkTextIsSame
public String checkTextIsSame(String id, String expected, String actual) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkTextIsSame
public String checkTextIsSame(String id, String expectedString, String actualString, boolean showDiff) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-