Package com.sun.xml.ws.test.container
Class DeploymentContext
- java.lang.Object
-
- com.sun.xml.ws.test.container.DeploymentContext
-
public class DeploymentContext extends Object
State of runningTestDescriptorexecution.TestCases that work on the sameTestDescriptorshares this object to communicate information between them.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description ClassLoaderclientClassLoaderClassLoaderthat loads all the generated client artifacts.ApplicationContainercontainerContainer where services are deployed.TestDescriptordescriptorThe test descriptor that governs all the deployed services.Map<TestService,DeployedService>servicesWhich service is deployed where?FileworkDirWork directory top.WsToolwsimportWsTooltool to be used.
-
Constructor Summary
Constructors Constructor Description DeploymentContext(TestDescriptor descriptor, ApplicationContainer container, WsTool wsimport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetResources()voidprepare(boolean clean)Creates working directories.
-
-
-
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.
-
services
public final Map<TestService,DeployedService> services
Which service is deployed where?
-
clientClassLoader
public ClassLoader clientClassLoader
ClassLoaderthat 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.
-
-
Constructor Detail
-
DeploymentContext
public DeploymentContext(TestDescriptor descriptor, ApplicationContainer container, WsTool wsimport)
-
-
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()
-
-