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 StringcheckJsonIsSame(String id, String expected, String actual) static StringcheckJsonSrcIsSame(String id, String expectedString, String actualString, boolean showDiff, org.hl7.fhir.utilities.json.model.JsonObject externals) static StringcheckJsonSrcIsSame(String id, String expected, String actual, org.hl7.fhir.utilities.json.model.JsonObject externals) static StringcheckTextIsSame(String id, String expected, String actual) static StringcheckTextIsSame(String id, String expectedString, String actualString, boolean showDiff) static StringcheckXMLIsSame(String id, InputStream expected, InputStream actual) static StringcheckXMLIsSame(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:
FileNotFoundExceptionIOException
-
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:
FileNotFoundExceptionIOException
-
checkJsonIsSame
public static String checkJsonIsSame(String id, String expected, String actual) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-
checkTextIsSame
public static String checkTextIsSame(String id, String expected, String actual) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-
checkTextIsSame
public static String checkTextIsSame(String id, String expectedString, String actualString, boolean showDiff) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-