Package org.hl7.fhir.r4.test.utils
Class TestingUtilities
- java.lang.Object
-
- org.hl7.fhir.r4.test.utils.TestingUtilities
-
public class TestingUtilities extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Stringcontentpathstatic IWorkerContextfcontextstatic Stringfixedpathstatic booleansilent
-
Constructor Summary
Constructors Constructor Description TestingUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Stringhome()static StringresourceNameToFile(String name)static StringresourceNameToFile(String subFolder, String name)static Stringtemp()static Stringus()
-
-
-
Field Detail
-
fcontext
public static IWorkerContext fcontext
-
silent
public static boolean silent
-
contentpath
public static String contentpath
-
-
Constructor Detail
-
TestingUtilities
public TestingUtilities()
-
-
Method Detail
-
context
public static IWorkerContext context()
-
content
public static String content() throws IOException
- Throws:
IOException
-
checkXMLIsSame
public static String checkXMLIsSame(InputStream f1, InputStream f2) throws Exception
- Throws:
Exception
-
checkXMLIsSame
public static String checkXMLIsSame(String f1, String f2) throws Exception
- 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
public static String resourceNameToFile(String name) throws IOException
- Throws:
IOException
-
resourceNameToFile
public static String resourceNameToFile(String subFolder, String name) throws IOException
- Throws:
IOException
-
-