You can use the
JUnitEE user
interface to run your all your tests inside the Container. JUnitEE is
a JUnit TestRunner that has been written as a servlet with the user
interface in HTML format.
コンテナ中で行われる全てのテストを実行するのに
JUnitEE
ユーザーインターフェースが使えます。
JUnitEE は
HTML フォーマットのユーザインターフェースを持つ、
サーブレットとして記述された
JUnit の TestRunner です。
You cannot achieve all features of Cactus using JUnitEE as
part of them depend on being executed on the client side.
Executing JUnitEE from ANT commands will probably not be possible.
Some benefits however of JUnitEE are:
一部はクライアント側での実行に依存しているので、
JUnitEE を用いて Cactus の全ての機能を達成することはできません。
JUnitEE を Ant コマンドから実行することは、
おそらくできないでしょう。
しかしながら、JUnitEE には幾つかのメリットがあります :
-
All class files are in one place : Install all your
TestCase class-files only in your container classpath. Both
TestCases derived from
junit.framework.TestCase and from
org.apache.cactus.JspTestCase
will be located in the same place and only once.
-
全てのクラスが一箇所に置ける :
自分のテストケースを全てコンテナのクラスパスにインストールします。
junit.framework.TestCase および
org.apache.cactus.JspTestCase から
派生したテストケースは、
同じたった一つの場所に置かれるのです。
-
Run all TestCases in the container : You can mix
both types of TestCases mentioned above in your test. All tests are
executed inside the Container. You can use testcases derived from
junit.framework.TestCase to test methods that do not
require the http objects such as the
HttpServletRequest or
HttpServletResponse objects.
-
全てのテストケースをコンテナで実行します :
開発者はテスト中に上述のテストケースのどちらを混ぜて使っても構いません。
全てのテストはコンテナ上で行われます。
HttpServletRequest や
HttpServletResponse オブジェクトのような HTTP
オブジェクトを必要としないメソッドをテストするために、
junit.framework.TestCase から派生したテストケースを
使うことができます。
Using JUnitEE is (relatively) simple. Assuming you have a container
such as Weblogic, Tomcat or Orion functioning and you know how to
configure Servlets and adding libraries to the Containers classpath and
you are familiar with the basics of Cactus then the rest is easy.
JUnitEE を使うのは(比較的)簡単です。
正しく動作する Weblogic、Tomcat、Orion のようなコンテナがあり、
サーブレットやライブラリをコンテナのクラスパスに設定する方法を知っており、
Cactus の基本について知っていれば、
残りは簡単です。
-
One good reason to use JUnitEE would be when you want to try Cactus
quickly and are not concerned with automatic unit testing.
-
JUnitEE を使う一つの良い理由は、
Cactus をすぐ試してみたく、
自動的な単体テストに関心が無い時でしょう。
-
Usage of standard JUnit testrunner (textui,swingui, ...) will not be
possible if cactus is configured this way and thus the ant junit task
cannot be used to automate the test.
-
Cactus がこの方法で設定された場合、
標準の JUnit のテストランナー(textui、swinguiなど)は使えないので、Ant の junit タスクをテスト自動化に使う事はできません。