Starting Cactus tests
The Cactus tests are started using a JUnit Test Runner. There are several configurations for executing these test runners:
- From Ant, by using the
<cactifywar>
and<cactus>
custom Ant tasks.- From the java command line, calling the
main()
method of a JUnit Test Runner.- From an IDE or any tool providing a JUnit integration plugin.
- From a browser, by using the Cactus Servlet Test Runner, which is a special JUnit Test Runner.
Running Cactus tests from the command line
You need to set up your classpath in the same way as when you run Cactus tests from Ant. However, you start the test with the following command line (this is an example using the Swing UI TestRunner found in the junit jar):
junit.swingui.TestRunner.main [test case class]