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