|
Last update : July 6 2002
Doc for : v1.3
Cactusについて
Cactus とは
ニュース
変更履歴
特徴/開発状況
目標
ロードマップ/ToDo
協力者
協力者募集
Cactus ユーザ
テスト済環境 ...
ライセンス
ダウンロード
ダウンロード
ドキュメント
Cactus の仕組み
さぁ始めよう
モック対コンテナ
Javadocs
└Javadocs
よくある質問
Howto ガイド
クラスパス Howto
設定 Howto
アップグレードHowto
テストケース Howto
セキュリティHowto
Ant Howto
HttpUnit Howto
サンプル Howto
EJB Howto
IDE Howto
JUnitEE Howto
サポート
Bug DB
メーリングリスト
その他
名前の由来
ロゴコンテスト
参考文献
アクセス状況
└WebAlizer
開発者向け
CVS
コード規約
ビルドの結果
|
| 共通目標/General goals |
-
Provide a simple unit testing framework focused on server side java
code which tries to cover all J2EE component models,
-
全ての J2EE コンポーネントモデルに対応することを目標としたサーバ側 java コードを対象として単純な単体テストフレームワークを提供します
-
Try to be the preferred Jakarta unit testing framework. This may
mean providing specific extensions to ease writing unit test for
Jakarta frameworks (like for Struts, Turbine, ...),
-
推奨 Jakarta 単体テストフレームワークになることを目標とします。
(Struts や Turbine のような)Jakarta フレームワークのための単体テストを記述しやすくする固有の拡張を提供することを意味します。
-
To be the framework of reference for in-container unit testing
strategy
-
イン-コンテナ単体テスト戦略の手本となるフレームワークとなることを目標とします。
|
| 短期目標/Short terms goals |
The short term goals for Cactus are to provide unit-testing for :
Cactus の短期目標は次の項目のための単体テストを提供することです :
-
サーブレット/Servlets,
-
Servlet 2.3 フィルタ/Servlet 2.3 Filters,
-
タグライブラリ/Tag libraries,
-
EJB/EJBs
All of these are currently enabled in Cactus 1.2 and greater, though
we'd like to do more work on facilitating EJB and Taglib testing (like
unit testing MDB EJBs easily, etc).
現在、上述の全てが Cactus 1.2 以上では可能になっていますが、
(MDB EJB の単体テストを簡単に行う、など)
EJB およびタグライブラリのテストの機能について、
さらに作業を続けたいと思っています。
|
| 長期目標/Long term goals |
| コンポーネント単体テストの未来/The Future of Component Unit Testing |
We believe unit testing server side components is going to get harder
and harder in the future (unless something is done about it !).
Even now, depending on the specifications
for a given component model it is more or less easy. Sometimes it is
even not feasible to test all kind of code.
将来的に、サーバ側コンポーネントの単体テストは、
(何か手を施さないかぎり)
どんどん難しくなっていくと思います。
現在なら、与えられたコンポーネントモデルの仕様に依存しているので、
簡単です。
場合によっては、全ての種類のコードをテストすることは不可能です。
We believe that we will see more and more components in the future.
By components we mean pieces of code that execute in a container.
The container will provide more and more services for the components
(like transactions, security, life cycle, persistence, interfaces
- like web services -, logging, ...). The consequences will be :
将来、今よりももっと多くのコンポーネントが提供されると思います。
ここでは、コンポーネントは、コンテナで実行されるコードのかたまりを意味します。
コンテナは、コンポーネントに対し、益々多くのサービスを提供するようになるでしょう。
(トランザクション、セキュリティ、ライフサイクル、
頑強性、ウェブサービスなどのインタフェース、ログ、など)
その結果、次のようになるでしょう :
-
testing strategies that are not in-container, like Mock Objects
will become less useful. Indeed, as the components will rely
more and more on the container's services, the confidence that
the tests will run well when deployed will decrease and the need
for a solution that ensures the code will run correctly in it's
environment will increase,
-
Mock オブジェクトのような、内部コンテナでないテスト戦略は、
あまり有用ではなくなるでしょう。
実際に、コンポーネントは、どんどんコンテナのサービスに依存するようになっており、
配備されたら正常動作するだろうという確信はなくなっていき、
その環境でコードが正常動作することを確認するためのソリューションの要求が大きくなるでしょう。
-
it will become more and more difficult to offer an in-container
unit testing framework that lives outside the container.
-
コンテナの外に存在する内部コンテナ単体テストフレームワークへの要求は、益々難しいものとなるでしょう。
|
| 長期目標/Long term goals for Cactus |
上述の予想に従って、Cactus には 2 つの長期目標があります :
-
Continue with the in-container approach as much as possible. It is
a best try effort in order to provide tests in which you can have
a good confidence,
-
内部コンテナによるアプローチを可能な限り長く続けてきます。
とても信頼できるテストを提供できるように、
最善を尽くして続けていきます。
-
However, we believe the only satisfactory and long term solution
is to include (unit) testing APIs as part of the container
specifications. This could be done in the form of a SPI
(Service Provider Interface) against which a generic unit testing
framework could be plugged, thus leaving the implementation details
to an external framework and only providing maybe a generic
and simple implementation. Thus, the goal of Cactus will be
to help specify needed container API/SPI for unit testing,
i.e. create
an additional service of the container : a "unit-testing service"
(in addition to the existing Security, Transaction, Life Cycle, ...
Services). As Cactus and Tomcat projects are both hosted on Jakarta
it might be a good test ground for this kind of work. Of course,
the first step would be to convince Tomcat developers that unit
testing (and testing in general) is indeed a need to be
addressed in the container itself. The ultimate
goal will be reached when this new API/SPI is accepted and become
a de jure standard. It would then be time to think about
integrating it into the Servlet Specifications
(or other components -like EJBs -
specifications). Agreed, this far-streched at the current time
but it is the Cactus vision !
-
しかしながら、唯一の満足できる長期的な解決策は、
コンテナの仕様の一部として(単体)テストAPIを含めることです。
これは、
汎用のテストフレームワークがプラグインできる事に対して、
ですから、実装の詳細は外部のフレームワークに委ね、
提供だけを行うことが、汎用的で単純な実装なのです。
従って、Cactus のゴールは単体テストのために必要なコンテナAPI/SPIの仕様策定を援助すること、
即ち、
(既存のセキュリティ、トランザクション、ライフサイクルなどのサービスに加えて)
コンテナの追加サービス : "単体テストサービス" を作ることです。
Cactus と Tomcat は共に Jakarta で行われているので、
この種の作業を行うには、良いテスト環境なのかもしれません。
もちろん、
最初のステップは、
単体テスト(および一般にテスト)
が実際にコンテナ自身の要求として位置付けられるように、
Tomcat 開発者に便宜を図ることです。
究極の目標は、
この新しい API/SPI が受容され制定規格となった時に、
達成されるでしょう。
その時が、
サーブレット仕様
(あるいは他の EJB などのコンポーネント)
への統合を考える時期なのです。
確かに、現時点では随分先の話ですが、
これが Cactus のビジョンなのです。
|
|
| フィードバックをお願いします/Feedback needed ! |
Cactus is an open source project where everyone is free to participate
(and even encouraged). Thus, we'd really like to have your opinions on
the subject of Cactus future.
Cactus は誰でも自由に参加できる(また励ますことができる)
オープンソースプロジェクトです。
ですから、本当に Cactus の未来に関する意見を頂きたいのです。
Cactus の将来についてどのようにお考えですか。
/How do you view the future of Cactus ?
上述の目標に同意できますか。/Do you like the goals defined above ?
実現可能だと思いますか/Do you think it is feasible ?
全ての回答は
Cactus メーリングリスト
にメールください。
/
Please send all answers to the
Cactus mailing list.
ありがとうございました/Thanks.
|
|
|