
Package org.hl7.fhir.r4.test.utils
Class TestingUtilities
java.lang.Object
org.hl7.fhir.r4.test.utils.TestingUtilities
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic IWorkerContextstatic Stringstatic boolean -
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 StringgenerateResourcePath(String subFolder, String name) static Stringhome()static StringloadTestResource(String... paths) static StringresourceNameToFile(String name) static StringresourceNameToFile(String subFolder, String name) static booleanstatic Stringus()
-
Field Details
-
fcontext
-
silent
-
fixedpath
-
contentpath
-
-
Constructor Details
-
TestingUtilities
public TestingUtilities()
-
-
Method Details
-
context
-
home
- Throws:
IOException
-
content
- Throws:
IOException
-
us
- Throws:
IOException
-
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
-
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
-
resourceNameToFile
- Throws:
IOException
-
generateResourcePath
- Throws:
IOException
-
resourceNameToFile
- Throws:
IOException
-
loadTestResource
- Throws:
IOException
-
runningAsSurefire
-