Class TestResourcesOptions
java.lang.Object
org.codice.ddf.test.common.options.TestResourcesOptions
Options for handling test resources.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTestResource(String resourcePath) Since Pax Exam uses 2 JVM's, the test resources in each of these JVM's differs.static org.ops4j.pax.exam.OptionAllows test resources under "target/test-classes" to be accessed by the security manager during test run time.
-
Field Details
-
TEST_RESOURCES_DIR
- See Also:
-
DEFAULT_TEST_RESOURCES_PATH
-
-
Method Details
-
includeTestResources
public static org.ops4j.pax.exam.Option includeTestResources()Allows test resources under "target/test-classes" to be accessed by the security manager during test run time.- Returns:
-
getTestResource
Since Pax Exam uses 2 JVM's, the test resources in each of these JVM's differs. This method resolves the proper path of the test resource, regardless of the JVM being used, if the test resources dir is specified byincludeTestResources().- Parameters:
resourcePath-- Returns:
-