Class DeploymentContext


  • public class DeploymentContext
    extends Object
    State of running TestDescriptor execution. TestCases that work on the same TestDescriptor shares this object to communicate information between them.
    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • descriptor

        @NotNull
        public final TestDescriptor descriptor
        The test descriptor that governs all the deployed services.
      • container

        @NotNull
        public final ApplicationContainer container
        Container where services are deployed.
      • wsimport

        @NotNull
        public final WsTool wsimport
        WsTool tool to be used.
      • clientClassLoader

        public ClassLoader clientClassLoader
        ClassLoader that loads all the generated client artifacts. This is used to run client tests.
      • workDir

        public final File workDir
        Work directory top.

        During test execution, this directory can be used as a temporary directory to store various temporary artifacts.

        If you store something in the working directory, be sure to first create a sub-directory, to avoid colliding with other parts of the harness that uses the work directory.

    • Method Detail

      • prepare

        public void prepare​(boolean clean)
        Creates working directories.
        Parameters:
        clean - if true, all the previous left-over files in the working directory will be deleted.
      • getResources

        public File getResources()