[jboss-user] [JBoss Seam] - Re: Issues regarding integration testing using seam-gen
zzztimbo
do-not-reply at jboss.com
Fri Nov 9 14:15:49 EST 2007
Here at the things I have done.
I downloaded Seam 2.0.0.GA.
I ran seam-gen to create a project.
I created a simple test that extends SeamTest.
I created a textng xml file.
I receive the following error when I run ant test.
| [testng] FAILED CONFIGURATION: @BeforeClass init
| [testng] java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap
| [testng] at org.jboss.util.collection.CollectionsFactory.createConcurrentReaderMap(CollectionsFactory.java:73)
| [testng] at org.jboss.kernel.plugins.event.AbstractEventEmitter.<init>(AbstractEventEmitter.java:60)
| [testng] at org.jboss.kernel.plugins.AbstractKernelObject.<init>(AbstractKernelObject.java:47)
| [testng] at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.<init>(AbstractBootstrap.java:51)
| [testng] at org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap.<init>(BasicBootstrap.java:58)
| [testng] at org.jboss.embedded.Bootstrap.createKernel(Bootstrap.java:130)
| [testng] at org.jboss.embedded.Bootstrap.getInstance(Bootstrap.java:76)
| [testng] at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:10)
| [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
| [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
| [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
| [testng] ... Removed 22 stack frames
| [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
| [testng] SKIPPED CONFIGURATION: @AfterMethod end
| [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
| [testng] SKIPPED: testNothing
|
|
Here is my my test:
|
| package com.mcc.test;
|
|
| import org.jboss.seam.mock.SeamTest;
| import org.testng.annotations.Test;
|
|
| public class TestTest extends SeamTest {
|
| @Test
| public void testNothing() {
| assert "foo".equalsIgnoreCase("FOO");
| }
| }
|
|
And here is my testng xml file:
|
| <!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
|
| <suite name="V2" verbose="2" parallel="false">
|
| <test name="Core">
| <classes>
| <class name="com.mcc.test.TestTest"/>
|
| </classes>
| </test>
|
| </suite>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103348#4103348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103348
More information about the jboss-user
mailing list