JBoss 4.2.2.GA
Seam 2.0.2.SP1
Eclipse 3.3
の環境で Seam を試しております。
seam-gen で、プロジェクトを作成し、seam マニュアルに従いアクションクラス
等を作成いたしました。
1) seam setup
2) seam new-project
3) seam new-action
TestNG のテストクラスが自動生成されていたので、
seam test を実行する事でテストを実行できました。
引き続き、Eclipse の TestNG プラグインから、実行したいと考え、下記の
src/test に付属されている readme.txt に従い設定を行いましたが、エラーが
発生しテストを行えません。
=== エラー内容(抜粋) ===
[Parser] Running:
C:\eclipse\workspace\testproject\classes\test\jp\ywe\test\HelloTest.
xml
FAILED CONFIGURATION: @BeforeClass init
java.lang.RuntimeException: Unable to create a KernelInitializer based
on the specified KernelConfig
=====
行った設定は、下記です。
1) 実行 > 実行ダイアログを開く
2) テストタブ:起動構成の実行.. Suite に classes\test\jp\hoge\test\
HelloTest.xml
3) クラスパスタブ:
ブートストラップ・エントリー
jboss-embedded-all.jar
hibernate-all.jar
thirdparty-all.jar
jboss-embedded-api.jar
jboss-deployers-client-spi.jar
jboss-deployers-core-spi.jar
ユーザー・エントリー
bootstrap (拡張(A) -> 外部フォルダーの追加)
=== readme.txt ===
If you want to run tests using the Eclipse TestNG plugin, you'll need to
add
these jars to the top of your TestNG classpath. Using the Run Dialog,
select
xml suite to run, and add /lib/test/jboss-embedded-all.jar,
/lib/test/hibernate-all.jar, /lib/test/thirdparty-all.jar, /lib/jboss-
embedded-api.jar,
/lib/jboss-deployers-client-spi.jar, /lib/jboss-deployers-core-spi.jar,
and
/bootstrap as the first entries in the User classpath.
To add tests to your project create a TestNG xml descriptor called *Test.
xml e.g.
FooTest.xml next to your test classes and run ant test.
====
どなたか、成功された方等、教えて頂けたら幸いです。
よろしくお願い致します。
-- naohiro Kuroda
_______________________________________________
Japan-jbug-seam mailing list
Japan-j...@lists.sourceforge.jp
http://lists.sourceforge.jp/mailman/listinfo/japan-jbug-seam