
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 expected, String actual) static String
checkJsonSrcIsSame
(String expectedString, String actualString, boolean showDiff) 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) static String
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) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxException
FileNotFoundException
IOException
-
checkJsonSrcIsSame
public static String checkJsonSrcIsSame(String expectedString, String actualString, boolean showDiff) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxException
FileNotFoundException
IOException
-
checkJsonIsSame
public static String checkJsonIsSame(String expected, String actual) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxException
FileNotFoundException
IOException
-
checkTextIsSame
public static String checkTextIsSame(String expected, String actual) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxException
FileNotFoundException
IOException
-
checkTextIsSame
public static String checkTextIsSame(String expectedString, String actualString, boolean showDiff) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxException
FileNotFoundException
IOException
-