[jjbug-seam 36] Seam 2.0.0.GA の testNG (seam-genの場合)

23 views
Skip to first unread message

Ken Yamada

unread,
Nov 8, 2007, 2:52:40 AM11/8/07
to japan-j...@lists.sourceforge.jp
山田@町田市です。
seam-gen で生成されたコードでは、 *Test.xmlを書けばtestNGを走らせることが出来る
ことになっていますが、2.0.0.GAでやってみると、
    : : :
test:
[testng] [Parser] Running:
[testng] ................./test-build/testngTest.xml
[testng]
[testng] FAILED CONFIGURATION: @BeforeClass init
[testng] java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap

となります。 EDU.oswego.cs.dl..... は
jboss-seam-2.0.0.GA/lib/test/thirdparty-all.jar にありますので、多分、
lib/test/*.jarをclasspathに通しておけば良いと思い、これらのファイルをlibにコピー
してみましたが、うまくゆきません。
    : : :
[testng] FAILED CONFIGURATION: @BeforeClass init
[testng] java.lang.RuntimeException: Unable to create a KernelInitializer based on the specified KernelConfig


 seam-2.0.0.GAのseam-genでtestNG環境を正しく作る方法をご存知の方、教えてください。
宜しくお願いします。

_______________________________________________
Japan-jbug-seam mailing list
Japan-j...@lists.sourceforge.jp
http://lists.sourceforge.jp/mailman/listinfo/japan-jbug-seam

Ken Yamada

unread,
Nov 8, 2007, 6:54:21 AM11/8/07
to japan-j...@lists.sourceforge.jp

自己レスになってしまいました。
test/readme.txt に書いてありました。
eclipseではこれで動いてくれるようですが、ant test は、そのままではやはり動かない
みたいです。

====================================================================
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/embedded-api.jar, <--- /lib/jboss-embedded-all.jar ??
     /lib/jboss-deployers.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.
=====================================================================

Reply all
Reply to author
Forward
0 new messages