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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
checkJsonIsSame
(String id, String expected, String actual) static String
checkJsonSrcIsSame
(String id, String expectedString, String actualString, boolean showDiff, org.hl7.fhir.utilities.json.model.JsonObject externals) static String
checkJsonSrcIsSame
(String id, String expected, String actual, org.hl7.fhir.utilities.json.model.JsonObject externals) static String
checkTextIsSame
(String id, String expected, String actual) static String
checkTextIsSame
(String id, String expectedString, String actualString, boolean showDiff) static String
checkXMLIsSame
(String id, InputStream expected, InputStream actual) static String
checkXMLIsSame
(String id, String expected, String actual) createNotEqualMessage
(String id, String message, String expected, String actual) Methods inherited from class org.hl7.fhir.utilities.tests.BaseTestingUtilities
createParentDirIfNotExists, findTestResource, loadTestResource, loadTestResourceBytes, loadTestResourceStream, setFhirTestCasesDirectory, tempFile, tempFolder
-
Constructor Details
-
CompareUtilities
public CompareUtilities()
-
-
Method Details
-
createNotEqualMessage
-
checkXMLIsSame
public static String checkXMLIsSame(String id, InputStream expected, InputStream actual) throws Exception - Throws:
Exception
-
checkXMLIsSame
- Throws:
Exception
-
checkJsonSrcIsSame
public static String checkJsonSrcIsSame(String id, String expected, String actual, org.hl7.fhir.utilities.json.model.JsonObject externals) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkJsonSrcIsSame
public static String checkJsonSrcIsSame(String id, String expectedString, String actualString, boolean showDiff, org.hl7.fhir.utilities.json.model.JsonObject externals) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkJsonIsSame
public static String checkJsonIsSame(String id, String expected, String actual) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkTextIsSame
public static String checkTextIsSame(String id, String expected, String actual) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkTextIsSame
public static String checkTextIsSame(String id, String expectedString, String actualString, boolean showDiff) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-