Starting Cactus tests캑터스 테스트 시작하기

The Cactus tests are started using a JUnit Test Runner. There are several configurations for executing these test runners: 캑터스 테스트들은 JUnit 테스트 실행기(Test Runner)를 이용해 시작됩니다. 이 테스트 실행기(Test Runner)들을 실행하기 위한 몇가지 설정이 있습니다.

  • From Ant, by using the <cactifywar> and <cactus> custom Ant tasks. Ant 에서 , <cactifywar><cactus> 커스텀 Ant 태스크들을 사용하는 방법.
  • From the java command line, calling the main() method of a JUnit Test Runner. 자바 명령행에서 , JUnit 테스트 실행기의 main() 메서드를 호출하는 방법.
  • From an IDE or any tool providing a JUnit integration plugin. IDE 에서 혹은 JUnit 통합 플러그인을 제공하는 어떤 툴에서 실행하는 방법.
  • From a browser, by using the Cactus Servlet Test Runner, which is a special JUnit Test Runner. 브라우저에서, 특별한 JUnit인 켁터스 서블릿 테스트 실행기를 이용하는 방법.

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 jar에서 찾을 수 있는 스윙 UI 의 테스트 실행기를 사용했습니다)으로 테스트를 시작할 수 있습니다.

junit.swingui.TestRunner.main [test case class]