Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Running container tests (not standalone), I'm seeing the following failure in Geronimo:
Expected an exception in test method org.jboss.jsr299.tck.tests.context.ContextTest.testGetContextWithTooManyActiveContextsFails()">
<![CDATA[org.testng.TestException:
Expected an exception in test method org.jboss.jsr299.tck.tests.context.ContextTest.testGetContextWithTooManyActiveContextsFails()
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
... Removed 18 stack frames]]>
Seems BeanManagerImpl is not handling this case properly. IRC'ed with Mark. Looks like singleContextMap needs to be cleaned up after the second context is added.