public class TestingUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
contentpath |
static IWorkerContext |
fcontext |
static String |
fixedpath |
static boolean |
silent |
| Constructor and Description |
|---|
TestingUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static 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 |
home() |
static String |
resourceNameToFile(String name) |
static String |
resourceNameToFile(String subFolder,
String name) |
static String |
temp() |
static String |
us() |
public static IWorkerContext fcontext
public static boolean silent
public static String contentpath
public TestingUtilities()
public static IWorkerContext context()
public static String content() throws IOException
IOExceptionpublic static String checkXMLIsSame(InputStream f1, InputStream f2) throws Exception
Exceptionpublic static String checkXMLIsSame(String f1, String f2) throws Exception
Exceptionpublic static String checkJsonSrcIsSame(String s1, String s2) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOExceptionpublic static String checkJsonSrcIsSame(String s1, String s2, boolean showDiff) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOExceptionpublic static String checkJsonIsSame(String f1, String f2) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOExceptionpublic static String checkTextIsSame(String s1, String s2) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOExceptionpublic static String checkTextIsSame(String s1, String s2, boolean showDiff) throws com.google.gson.JsonSyntaxException, FileNotFoundException, IOException
com.google.gson.JsonSyntaxExceptionFileNotFoundExceptionIOExceptionpublic static String resourceNameToFile(String name) throws IOException
IOExceptionpublic static String resourceNameToFile(String subFolder, String name) throws IOException
IOExceptionCopyright © 2014–2021 Health Level 7. All rights reserved.