Class PrepareExecutor

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.sun.xml.ws.test.exec.PrepareExecutor
All Implemented Interfaces:
junit.framework.Test

public class PrepareExecutor extends junit.framework.TestCase
Executor that cleans up the work directory (if necessary) and create directories (if necessary). This is needed to avoid picking up old artifacts from the previous test run.
Author:
Kohsuke Kawaguchi
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Every Executor works for one DeploymentContext.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PrepareExecutor(DeploymentContext context, boolean clean)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final File
     
    void
    Executes something.
    protected void
     
    protected void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • PrepareExecutor

      public PrepareExecutor(DeploymentContext context, boolean clean)
  • Method Details

    • runTest

      public void runTest() throws Throwable
      Executes something. Error happened during this will be recorded as a test failure.
      Throws:
      Throwable
    • 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)