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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
static final String
static Map
<String, IWorkerContext> static String
Fields inherited from class org.hl7.fhir.utilities.tests.BaseTestingUtilities
silent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
content()
static IWorkerContext
Get an existing instantiation of a WorkerContext if available This uses the DEFAULT_CONTEXT_VERSIONstatic IWorkerContext
getSharedWorkerContext
(String version) Get an existing instantiation of a WorkerContext if availablestatic String
static IWorkerContext
getWorkerContext
(String version) static SimpleWorkerContext
getWorkerContext
(org.hl7.fhir.utilities.npm.NpmPackage npmPackage) static SimpleWorkerContext
getWorkerContext
(org.hl7.fhir.utilities.npm.NpmPackage npmPackage, IContextResourceLoader loader) static String
home()
static void
static org.hl7.fhir.utilities.npm.NpmPackage
static boolean
static String
us()
Methods inherited from class org.hl7.fhir.utilities.tests.BaseTestingUtilities
createParentDirIfNotExists, findTestResource, loadTestResource, loadTestResourceBytes, loadTestResourceStream, setFhirTestCasesDirectory, tempFile, tempFolder
-
Field Details
-
fcontexts
-
DEFAULT_CONTEXT_VERSION
- See Also:
-
fixedpath
-
contentpath
-
-
Constructor Details
-
TestingUtilities
public TestingUtilities()
-
-
Method Details
-
getWorkerContext
-
loadR5CorePackage
- Throws:
IOException
-
getTerminologyCacheDirectory
-
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, IContextResourceLoader loader) throws Exception - Throws:
Exception
-
home
- Throws:
IOException
-
content
- Throws:
IOException
-
us
- Throws:
IOException
-
injectCorePackageLoader
-
runningAsSurefire