[jboss-user] [JBoss Seam] - configuring integration testing with TestNG in eclipse
matt.drees
do-not-reply at jboss.com
Sun Jan 28 02:30:55 EST 2007
I seam-gened a new empty project, and then created a simple action (seam new-action) called RegisterAction. I could right-click on the RegisterTest file and run TestNG, and it would pass.
If I add
| @PersistenceContext
| private EntityManager em;
|
to RegisterAction.java, the test fails with "NameNotFoundException: RegisterAction not bound".
If I run the test through ant (command line or eclipse), it passes.
Visually comparing the eclipse output with the ant output, the only difference I saw was that the ant output has an extra 3 lines:
| [testng] 02:06:35,705 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=test-build,name=RegisterAction,service=EJB3 with dependencies:
| [testng] 02:06:35,705 INFO [MCKernelAbstraction] AbstractDependencyMetaData at 9722c9{dependency=persistence.units:jar=test-build.jar,unitName=integrationtest}
| [testng] 02:06:35,736 INFO [EJBContainer] STARTED EJB: org.uscm.integrationtest.RegisterAction ejbName: RegisterAction
|
So apparently RegisterAction isn't getting installed as an EJB.
Does anyone know why that might be?
I'm using seam from cvs (head).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007370#4007370
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007370
More information about the jboss-user
mailing list