Package org.hl7.fhir.r4.test.utils
Class TestingUtilities
java.lang.Object
org.hl7.fhir.r4.test.utils.TestingUtilities
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
static IWorkerContext
static String
static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
checkJsonIsSame
(String f1, String f2) static String
checkJsonSrcIsSame
(String s1, String s2) static String
checkJsonSrcIsSame
(String s1, String s2, boolean showDiff) static String
checkTextIsSame
(String s1, String s2) static String
checkTextIsSame
(String s1, String s2, boolean showDiff) static String
checkXMLIsSame
(InputStream f1, InputStream f2) static String
checkXMLIsSame
(String f1, String f2) static String
content()
static IWorkerContext
context()
static String
generateResourcePath
(String subFolder, String name) static String
home()
static String
loadTestResource
(String... paths) static String
resourceNameToFile
(String name) static String
resourceNameToFile
(String subFolder, String name) static boolean
static String
us()
-
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.JsonSyntaxException
FileNotFoundException
IOException
-
checkJsonSrcIsSame
public static String checkJsonSrcIsSame(String s1, String s2, boolean showDiff) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxException
FileNotFoundException
IOException
-
checkJsonIsSame
public static String checkJsonIsSame(String f1, String f2) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxException
FileNotFoundException
IOException
-
checkTextIsSame
public static String checkTextIsSame(String s1, String s2) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxException
FileNotFoundException
IOException
-
checkTextIsSame
public static String checkTextIsSame(String s1, String s2, boolean showDiff) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException - Throws:
com.google.gson.JsonSyntaxException
FileNotFoundException
IOException
-
resourceNameToFile
- Throws:
IOException
-
generateResourcePath
- Throws:
IOException
-
resourceNameToFile
- Throws:
IOException
-
loadTestResource
- Throws:
IOException
-
runningAsSurefire
-