Class DeploymentExecutor

  • All Implemented Interfaces:
    junit.framework.Test

    public class DeploymentExecutor
    extends junit.framework.TestCase
    TestCase that deploys a TestService to the ApplicationContainer.

    After this test is run, createUndeployer() needs to be used to undeploy the deployed service.

    Author:
    Kohsuke Kawaguchi
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addSTSToClasspath()  
      com.sun.xml.ws.test.exec.Executor createUndeployer()
      Creates another test to be exeucted at the end to undeploy the service that this test deployed.
      protected File makeWorkDir​(String dirName)  
      void runTest()
      Executes something.
      protected void setUp()  
      protected void tearDown()  
      • Methods inherited from class junit.framework.TestCase

        assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
    • Constructor Detail

      • DeploymentExecutor

        public DeploymentExecutor​(DeployedService context)
    • Method Detail

      • runTest

        public void runTest()
                     throws Throwable
        Executes something. Error happened during this will be recorded as a test failure.
        Throws:
        Throwable
      • createUndeployer

        public com.sun.xml.ws.test.exec.Executor createUndeployer()
        Creates another test to be exeucted at the end to undeploy the service that this test deployed.
      • setUp

        protected void setUp()
                      throws Exception
        Overrides:
        setUp in class junit.framework.TestCase
        Throws:
        Exception
      • tearDown

        protected void tearDown()
                         throws Exception
        Overrides:
        tearDown in class junit.framework.TestCase
        Throws:
        Exception
      • makeWorkDir

        protected final File makeWorkDir​(String dirName)