Class TestResourcesOptions

java.lang.Object
org.codice.ddf.test.common.options.TestResourcesOptions

public class TestResourcesOptions extends Object
Options for handling test resources.
  • Field Details

    • TEST_RESOURCES_DIR

      public static final String TEST_RESOURCES_DIR
      See Also:
    • DEFAULT_TEST_RESOURCES_PATH

      public static final String 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

      public static String getTestResource(String resourcePath)
      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 by includeTestResources().
      Parameters:
      resourcePath -
      Returns: