[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2519) SeamTest class does not support dependent testing

Charles Crouch (JIRA) jira-events at lists.jboss.org
Wed Sep 10 17:19:38 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBSEAM-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12429013#action_12429013 ] 

Charles Crouch commented on JBSEAM-2519:
----------------------------------------

Exception I'm getting...

        <test-method status="FAIL" signature="begin()" name="begin" is-config="true" duration-ms="0" started-at="2008-09-10T16:11:30Z" finished-at="2008-09-10T16:11:30Z">
          <exception class="java.lang.IllegalStateException">
            <message>
              <![CDATA[Attempted to invoke a Seam component outside the an initialized application]]>
            </message>
            <full-stacktrace>
              <![CDATA[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:173)
	at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
	at org.jboss.seam.mock.BaseSeamTest.begin(BaseSeamTest.java:912)
	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:580)
	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:427)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:607)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:874)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
	at org.testng.TestRunner.runWorkers(TestRunner.java:689)
	at org.testng.TestRunner.privateRun(TestRunner.java:566)
	at org.testng.TestRunner.run(TestRunner.java:466)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
	at org.testng.SuiteRunner.run(SuiteRunner.java:191)
	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
	at org.testng.TestNG.run(TestNG.java:701)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:136)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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:338)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
]]>
            </full-stacktrace>
          </exception>
        </test-method>


> 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