Package org.hl7.fhir.r5.test.utils
Class TestingUtilities
java.lang.Object
org.hl7.fhir.utilities.tests.BaseTestingUtilities
org.hl7.fhir.r5.test.utils.TestingUtilities
-
Field Summary
FieldsFields inherited from class org.hl7.fhir.utilities.tests.BaseTestingUtilities
silent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcheckJsonIsSame(String f1, String f2) static StringcheckJsonSrcIsSame(String s1, String s2) static StringcheckJsonSrcIsSame(String s1, String s2, boolean showDiff) static StringcheckTextIsSame(String s1, String s2) static StringcheckTextIsSame(String s1, String s2, boolean showDiff) static StringcheckXMLIsSame(InputStream f1, InputStream f2) static StringcheckXMLIsSame(String f1, String f2) static Stringcontent()static IWorkerContextcontext()static IWorkerContextstatic SimpleWorkerContextgetWorkerContext(org.hl7.fhir.utilities.npm.NpmPackage npmPackage) static SimpleWorkerContextgetWorkerContext(org.hl7.fhir.utilities.npm.NpmPackage npmPackage, IWorkerContext.IContextResourceLoader loader) static Stringhome()static Stringtemp()static Stringstatic StringtempFolder(String name) static Stringus()Methods inherited from class org.hl7.fhir.utilities.tests.BaseTestingUtilities
findTestResource, loadTestResource, loadTestResourceBytes, loadTestResourceStream
-
Field Details
-
fcontexts
-
fixedpath
-
contentpath
-
-
Constructor Details
-
TestingUtilities
public TestingUtilities()
-
-
Method Details
-
context
-
context
-
getWorkerContext
public static SimpleWorkerContext getWorkerContext(org.hl7.fhir.utilities.npm.NpmPackage npmPackage) throws Exception - Throws:
Exception
-
getWorkerContext
public static SimpleWorkerContext getWorkerContext(org.hl7.fhir.utilities.npm.NpmPackage npmPackage, IWorkerContext.IContextResourceLoader loader) throws Exception - Throws:
Exception
-
home
-
content
- Throws:
IOException
-
us
-
checkXMLIsSame
- Throws:
Exception
-
checkXMLIsSame
- Throws:
Exception
-
checkJsonSrcIsSame
public static String checkJsonSrcIsSame(String s1, String s2) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOException
-
checkJsonSrcIsSame
public static String checkJsonSrcIsSame(String s1, String s2, boolean showDiff) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOException
-
checkJsonIsSame
public static String checkJsonIsSame(String f1, String f2) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOException
-
temp
-
checkTextIsSame
public static String checkTextIsSame(String s1, String s2) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOException
-
checkTextIsSame
public static String checkTextIsSame(String s1, String s2, boolean showDiff) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOException
-
tempFile
- Throws:
IOException
-
tempFolder
- Throws:
IOException
-