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, toStringassertEquals, 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, formatpublic 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.TestSetupException - if an error occurs.protected void tearDown()
throws Exception
tearDown in class junit.extensions.TestSetupException - if an error occurs.public String getName()
Copyright © 2017 The Apache Software Foundation. All rights reserved.