public class CargoTestSetup
extends junit.extensions.TestSetup
Convenience TestSetup
class which uses Cargo to start
and stop a Servlet container.
Constructor and Description |
---|
CargoTestSetup(junit.framework.Test test)
Construct a new instance of this test setup.
|
Modifier and Type | Method and Description |
---|---|
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.
|
basicRun, countTestCases, getTest, toString
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, failNotEquals, failNotSame, failSame, format
public CargoTestSetup(junit.framework.Test test)
Construct a new instance of this test setup.
test
- Tests to be run within this test setup.protected void setUp() throws Exception
Start the container prior to running the tests.
The following System properties are used:
setUp
in class junit.extensions.TestSetup
Exception
- if an error occurs.protected void tearDown() throws Exception
tearDown
in class junit.extensions.TestSetup
Exception
- if an error occurs.public String getName()
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.