[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2519) SeamTest class does not support dependent testing
Pete Muir (JIRA)
jira-events at lists.jboss.org
Tue Sep 16 07:51:20 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12429818#action_12429818 ]
Pete Muir commented on JBSEAM-2519:
-----------------------------------
Charles, please attach a simple test case
> SeamTest class does not support dependent testing
> -------------------------------------------------
>
> Key: JBSEAM-2519
> URL: https://jira.jboss.org/jira/browse/JBSEAM-2519
> Project: Seam
> Issue Type: Bug
> Components: Test Harness
> Affects Versions: 2.0.0.GA, 2.0.1.CR1, 2.0.2.SP1
> Environment: Seam 2.0.0.GA + TestNG 5.1 + Maven Surefire plugin
> Reporter: Olivier Thierry
>
> When you use dependent testing in a test class extending SeamTest, either with dependsOnGroups or dependsOnMethods, the test crash on begin phase with the following stack trace :
> begin(fr.myCompany.test.ServiceOrganisationTest) Time elapsed: 0.126 sec <<< FAILURE!
> java.lang.IllegalStateException: Attempted to invoke a Seam component outside the an initialized application
> at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)
> at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:169)
> at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
> at org.jboss.seam.mock.BaseSeamTest.begin(BaseSeamTest.java:920)
> at org.jboss.seam.mock.SeamTest.begin(SeamTest.java:28)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
> at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:322)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:156)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:365)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
> at org.testng.TestRunner.privateRun(TestRunner.java:693)
> at org.testng.TestRunner.run(TestRunner.java:574)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:241)
> at org.testng.SuiteRunner.run(SuiteRunner.java:145)
> at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
> at org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:69)
> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:78)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list