[
http://jira.jboss.com/jira/browse/JBSEAM-2371?page=comments#action_12410590 ]
Hemant Saxena commented on JBSEAM-2371:
---------------------------------------
Attached is the reference snapshot of the our mavenized project.
- It neatly describe the dependency artifact for seam, richfaces combo; and other required
conf files
- It neatly describe the dependency requires to invoke surefire --> which invoke testng
-- which invoke SeamTest --> which bootstrap jboss embeddable container (this will
provide JTA, JNDI and other stuff) and the seam microcontainer (this initialize seam
components).
What I understand that we (including me) were able to bootstrap seam microcontainer but
wasnt able to bootstrap jboss embedded container along because of the dependencies issues.
And thats the reason why JNDI env wasnt available and we werent able to deploy -ds.xml
files which lead to non-instantiating EntityManager through Components.xml. The solution I
gave in the earlier comment just exactly solve the dependency issues which lead to
successful bootstrap of jboss embeddable container and seam was able to inject
entitymanager into its components. I tried some basic navigation stuff and security stuff
and it works.
if you need more stuff to be loaded like navigation, jbpm and all , you need to get it
copied to <project>/test-classes path inorder to get it picked up by seam
microcontainer.
Please refer to template project on how things has been laid out.
I have not included the eclipse project files because that you can easily generate those
by following command:
$maven eclipse:eclipse
or (using wtpversion version)
$mvn -Dwtpversion=1.5 eclipse:eclipse
Integration testing Seam components with Maven
----------------------------------------------
Key: JBSEAM-2371
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2371
Project: Seam
Issue Type: Task
Components: Build, Test Harness
Affects Versions: 2.0.0.GA
Environment: Maven 2.0.7
Reporter: Siarhei Dudzin
Priority: Critical
Fix For: 2.1.0.BETA1
Attachments: maven-seam-microcontainer-testng-template.zip,
testproject-master-JBSEAM-2371.zip
Various users have reported integration testing with Seam is not working in
'Mavenized' projects.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira