Package com.sun.xml.ws.test.container
Class DeploymentContext
java.lang.Object
com.sun.xml.ws.test.container.DeploymentContext
State of running
TestDescriptor execution.
TestCases that work on the same TestDescriptor
shares this object to communicate information between them.- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionClassLoaderthat loads all the generated client artifacts.final ApplicationContainerContainer where services are deployed.final TestDescriptorThe test descriptor that governs all the deployed services.final Map<TestService, DeployedService> Which service is deployed where?final FileWork directory top.final WsToolWsTooltool to be used. -
Constructor Summary
ConstructorsConstructorDescriptionDeploymentContext(TestDescriptor descriptor, ApplicationContainer container, WsTool wsimport) -
Method Summary
-
Field Details
-
descriptor
The test descriptor that governs all the deployed services. -
container
Container where services are deployed. -
wsimport
WsTooltool to be used. -
services
Which service is deployed where? -
clientClassLoader
ClassLoaderthat loads all the generated client artifacts. This is used to run client tests. -
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 Details
-
DeploymentContext
public DeploymentContext(TestDescriptor descriptor, ApplicationContainer container, WsTool wsimport)
-
-
Method Details
-
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
-