
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
checkJsonIsSame
(String expected, String actual) static String
checkJsonSrcIsSame
(String expectedString, String actualString, boolean showDiff, org.hl7.fhir.utilities.json.model.JsonObject externals) static String
checkJsonSrcIsSame
(String expected, String actual, org.hl7.fhir.utilities.json.model.JsonObject externals) static String
checkTextIsSame
(String expected, String actual) static String
checkTextIsSame
(String expectedString, String actualString, boolean showDiff) static String
checkXMLIsSame
(InputStream expected, InputStream actual) static String
checkXMLIsSame
(String expected, String actual) createNotEqualMessage
(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
- Throws:
Exception
-
checkXMLIsSame
- Throws:
Exception
-
checkJsonSrcIsSame
public static String checkJsonSrcIsSame(String expected, String actual, org.hl7.fhir.utilities.json.model.JsonObject externals) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkJsonSrcIsSame
public static String checkJsonSrcIsSame(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 expected, String actual) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkTextIsSame
public static String checkTextIsSame(String expected, String actual) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
checkTextIsSame
public static String checkTextIsSame(String expectedString, String actualString, boolean showDiff) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-