[seam-issues] [JBoss JIRA] (JBSEAM-5016) Working SeamTest with Arquillian+TestNG
Marek Schmidt (JIRA)
jira-events at lists.jboss.org
Wed Aug 15 07:15:15 EDT 2012
[ https://issues.jboss.org/browse/JBSEAM-5016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marek Schmidt updated JBSEAM-5016:
----------------------------------
Attachment: ARQ.TestNG.patch
attaching an experimental patch,
There are two problems with TestNG+Arquillian:
1. The test class must extend org.jboss.arquillian.testng.Arquillian, which breaks our AbstractSeamTest hiearchy
2. The @Before/@After TestNG events are executed both on client and in container
This patch solves the 1st problem by making the SeamTest class a copy of the AbstractSeamTest. The 2nd problem is solved by adding simple arquillian extension into jboss-seam (org.jboss.mock.arquillian.* ) which is enabled only for arquillian-testng-container and which hooks into internal arquillian events to run the proper begin/end SeamTest methods.
> Working SeamTest with Arquillian+TestNG
> ---------------------------------------
>
> Key: JBSEAM-5016
> URL: https://issues.jboss.org/browse/JBSEAM-5016
> Project: Seam 2
> Issue Type: Enhancement
> Components: Test Harness
> Affects Versions: 2.3.0.BETA2
> Reporter: Marek Schmidt
> Assignee: Marek Schmidt
> Fix For: The future
>
> Attachments: ARQ.TestNG.patch
>
>
> Make SeamTest work with arquillian-testng-container
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list