org.apache.shale.test.cargo
Class CargoTestSetup

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.extensions.TestDecorator
          extended by junit.extensions.TestSetup
              extended by org.apache.shale.test.cargo.CargoTestSetup
All Implemented Interfaces:
junit.framework.Test

public class CargoTestSetup
extends junit.extensions.TestSetup

Convenience TestSetup class which uses Cargo to start and stop a Servlet container.


Field Summary
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
CargoTestSetup(junit.framework.Test test)
          Construct a new instance of this test setup.
 
Method Summary
 String getName()
          Deprecated. No replacement.
protected  void setUp()
          Start the container prior to running the tests.
protected  void tearDown()
          Stop the container after running the tests.
 
Methods inherited from class junit.extensions.TestSetup
run
 
Methods inherited from class junit.extensions.TestDecorator
basicRun, countTestCases, getTest, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CargoTestSetup

public CargoTestSetup(junit.framework.Test test)

Construct a new instance of this test setup.

Parameters:
test - Tests to be run within this test setup.
Method Detail

setUp

protected void setUp()
              throws Exception

Start the container prior to running the tests.

The following System properties are used:

Overrides:
setUp in class junit.extensions.TestSetup
Throws:
Exception - if an error occurs.

tearDown

protected void tearDown()
                 throws Exception
Stop the container after running the tests.

Overrides:
tearDown in class junit.extensions.TestSetup
Throws:
Exception - if an error occurs.

getName

public String getName()
Deprecated. No replacement.

Return the name of the test setup. (Temporarily required due to MSUREFIRE-119.)

Returns:
the name of the test setup.


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.