[ https://issues.apache.org/jira/browse/OWB-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John D. Ament updated OWB-1206: ------------------------------- Attachment: OWB_1206_v2.patch Here's a better patch, created an owb-se-tck package to run. It's a bit of a pain but the test harness will end up being the simple part. I excluded the request context activation tests until those are in. 17/27 tests are failing {code} Tests run: 27, Failures: 17, Errors: 0, Skipped: 0, Time elapsed: 16.639 sec <<< FAILURE! - in TestSuite instanceSelectAnnotationThrowsISEWhenAccessedAfterShutdown(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.523 sec <<< FAILURE! org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method BootstrapSEContainerTest.instanceSelectAnnotationThrowsISEWhenAccessedAfterShutdown()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@4ec88fd9] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method BootstrapSEContainerTest.instanceSelectAnnotationThrowsISEWhenAccessedAfterShutdown()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@4ec88fd9] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Method BootstrapSEContainerTest.instanceSelectAnnotationThrowsISEWhenAccessedAfterShutdown()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@4ec88fd9] should have thrown an exception of class java.lang.IllegalStateException instanceSelectClassThrowsISEWhenAccessedAfterShutdown(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.072 sec <<< FAILURE! org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method BootstrapSEContainerTest.instanceSelectClassThrowsISEWhenAccessedAfterShutdown()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@2e2bb4db] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method BootstrapSEContainerTest.instanceSelectClassThrowsISEWhenAccessedAfterShutdown()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@2e2bb4db] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Method BootstrapSEContainerTest.instanceSelectClassThrowsISEWhenAccessedAfterShutdown()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@2e2bb4db] should have thrown an exception of class java.lang.IllegalStateException seContainerThrowsISEWhenAccessingBmAtShutdownContainer(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.074 sec <<< FAILURE! org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method BootstrapSEContainerTest.seContainerThrowsISEWhenAccessingBmAtShutdownContainer()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@38709d97] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method BootstrapSEContainerTest.seContainerThrowsISEWhenAccessingBmAtShutdownContainer()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@38709d97] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Method BootstrapSEContainerTest.seContainerThrowsISEWhenAccessingBmAtShutdownContainer()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@38709d97] should have thrown an exception of class java.lang.IllegalStateException testAddDecorator(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.062 sec <<< FAILURE! java.lang.AssertionError: expected [true] but found [false] at org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest.testAddDecorator(BootstrapSEContainerTest.java:244) testAddInterceptor(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.048 sec <<< FAILURE! java.lang.AssertionError: expected [true] but found [false] at org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest.testAddInterceptor(BootstrapSEContainerTest.java:227) testAlternativesInSE(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.032 sec <<< FAILURE! java.lang.AssertionError: expected [Circle] but found [Square] at org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest.testAlternativesInSE(BootstrapSEContainerTest.java:138) testContainerCloseMethodOnNotInitializedContainer(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.041 sec <<< FAILURE! org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method BootstrapSEContainerTest.testContainerCloseMethodOnNotInitializedContainer()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@188905db] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method BootstrapSEContainerTest.testContainerCloseMethodOnNotInitializedContainer()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@188905db] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Method BootstrapSEContainerTest.testContainerCloseMethodOnNotInitializedContainer()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest@188905db] should have thrown an exception of class java.lang.IllegalStateException testInvocationOfInitializedMethodReturnsNewSeContainerInstance(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.065 sec <<< FAILURE! org.apache.webbeans.exception.WebBeansDeploymentException: java.lang.NullPointerException at org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest.testInvocationOfInitializedMethodReturnsNewSeContainerInstance(BootstrapSEContainerTest.java:103) Caused by: java.lang.NullPointerException at org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest.testInvocationOfInitializedMethodReturnsNewSeContainerInstance(BootstrapSEContainerTest.java:103) testSeContainerLookup(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.019 sec <<< FAILURE! java.lang.IllegalArgumentException: sun.misc.Launcher$AppClassLoader@764c12b6 is already registered at org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest.testSeContainerLookup(BootstrapSEContainerTest.java:253) testSyntheticArchive(org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest) Time elapsed: 0.02 sec <<< FAILURE! java.lang.IllegalArgumentException: sun.misc.Launcher$AppClassLoader@764c12b6 is already registered at org.jboss.cdi.tck.tests.se.container.BootstrapSEContainerTest.testSyntheticArchive(BootstrapSEContainerTest.java:114) testReferenceUsedAfterContainerShutdown(org.jboss.cdi.tck.tests.se.container.contextualReference.InvalidContextualReferenceTest) Time elapsed: 0.42 sec <<< FAILURE! org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method InvalidContextualReferenceTest.testReferenceUsedAfterContainerShutdown()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.contextualReference.InvalidContextualReferenceTest@4b973a45] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Expected exception java.lang.IllegalStateException but got org.testng.TestException: Method InvalidContextualReferenceTest.testReferenceUsedAfterContainerShutdown()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.contextualReference.InvalidContextualReferenceTest@4b973a45] should have thrown an exception of class java.lang.IllegalStateException Caused by: org.testng.TestException: Method InvalidContextualReferenceTest.testReferenceUsedAfterContainerShutdown()[pri:0, instance:org.jboss.cdi.tck.tests.se.container.contextualReference.InvalidContextualReferenceTest@4b973a45] should have thrown an exception of class java.lang.IllegalStateException testCustomClassLoader(org.jboss.cdi.tck.tests.se.container.customClassloader.CustomClassLoaderSETest) Time elapsed: 0.44 sec <<< FAILURE! javax.enterprise.inject.UnsatisfiedResolutionException: Api type [org.jboss.cdi.tck.tests.se.container.customClassloader.Alpha] is not found with the qualifiers Qualifiers: [@javax.enterprise.inject.Default(),@org.jboss.cdi.tck.tests.se.container.customClassloader.ProcessedByExtension()] at org.jboss.cdi.tck.tests.se.container.customClassloader.CustomClassLoaderSETest.testCustomClassLoader(CustomClassLoaderSETest.java:77) testEventIsFiredWhenAplicationContextDestroyed(org.jboss.cdi.tck.tests.se.context.ContextSETest) Time elapsed: 0.071 sec <<< FAILURE! java.lang.AssertionError: expected [true] but found [false] at org.jboss.cdi.tck.tests.se.context.ContextSETest.testEventIsFiredWhenAplicationContextDestroyed(ContextSETest.java:88) requestContextIsActiveDuringPostConstructCallback(org.jboss.cdi.tck.tests.se.context.request.RequestContextTest) Time elapsed: 0.063 sec <<< FAILURE! java.lang.AssertionError: null at org.jboss.cdi.tck.tests.se.context.request.RequestContextTest.requestContextIsActiveDuringPostConstructCallback(RequestContextTest.java:72) testCustomCDIProvider(org.jboss.cdi.tck.tests.se.customCDIProvider.CustomCDIProviderTest) Time elapsed: 0.256 sec <<< FAILURE! java.lang.AssertionError: expected [null] but found [org.apache.webbeans.container.OwbCDI@31379c02] at org.jboss.cdi.tck.tests.se.customCDIProvider.CustomCDIProviderTest.testCustomCDIProvider(CustomCDIProviderTest.java:53) testImplicitArchiveDiscovered(org.jboss.cdi.tck.tests.se.discovery.implicit.ImplicitBeanArchiveWithSystemPropertyTest) Time elapsed: 0.266 sec <<< FAILURE! java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: javax.enterprise.inject.scan.implicit at org.jboss.cdi.tck.tests.se.discovery.implicit.ImplicitBeanArchiveWithSystemPropertyTest.testImplicitArchiveDiscovered(ImplicitBeanArchiveWithSystemPropertyTest.java:56) Caused by: java.lang.ClassNotFoundException: javax.enterprise.inject.scan.implicit at org.jboss.cdi.tck.tests.se.discovery.implicit.ImplicitBeanArchiveWithSystemPropertyTest.testImplicitArchiveDiscovered(ImplicitBeanArchiveWithSystemPropertyTest.java:56) testImplicitArchiveDiscovered(org.jboss.cdi.tck.tests.se.discovery.implicit.ImplicitBeanArchiveSETest) Time elapsed: 0.273 sec <<< FAILURE! java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: javax.enterprise.inject.scan.implicit at org.jboss.cdi.tck.tests.se.discovery.implicit.ImplicitBeanArchiveSETest.testImplicitArchiveDiscovered(ImplicitBeanArchiveSETest.java:54) Caused by: java.lang.ClassNotFoundException: javax.enterprise.inject.scan.implicit at org.jboss.cdi.tck.tests.se.discovery.implicit.ImplicitBeanArchiveSETest.testImplicitArchiveDiscovered(ImplicitBeanArchiveSETest.java:54) Results : Failed tests: BootstrapSEContainerTest.instanceSelectAnnotationThrowsISEWhenAccessedAfterShutdown » Test BootstrapSEContainerTest.instanceSelectClassThrowsISEWhenAccessedAfterShutdown » Test BootstrapSEContainerTest.seContainerThrowsISEWhenAccessingBmAtShutdownContainer » Test BootstrapSEContainerTest>Arquillian.run:164->testAddDecorator:244 expected [true] but found [false] BootstrapSEContainerTest>Arquillian.run:164->testAddInterceptor:227 expected [true] but found [false] BootstrapSEContainerTest>Arquillian.run:164->testAlternativesInSE:138 expected [Circle] but found [Square] BootstrapSEContainerTest.testContainerCloseMethodOnNotInitializedContainer » Test BootstrapSEContainerTest>Arquillian.run:164->testInvocationOfInitializedMethodReturnsNewSeContainerInstance:103 » WebBeansDeployment BootstrapSEContainerTest>Arquillian.run:164->testSeContainerLookup:253 » IllegalArgument BootstrapSEContainerTest>Arquillian.run:164->testSyntheticArchive:114 » IllegalArgument InvalidContextualReferenceTest.testReferenceUsedAfterContainerShutdown » Test ... CustomClassLoaderSETest>Arquillian.run:164->testCustomClassLoader:77 » UnsatisfiedResolution ContextSETest>Arquillian.run:164->testEventIsFiredWhenAplicationContextDestroyed:88 expected [true] but found [false] RequestContextTest>Arquillian.run:164->requestContextIsActiveDuringPostConstructCallback:72 null CustomCDIProviderTest>Arquillian.run:164->testCustomCDIProvider:53 expected [null] but found [org.apache.webbeans.container.OwbCDI@31379c02] ImplicitBeanArchiveSETest>Arquillian.run:164->testImplicitArchiveDiscovered:54 » IllegalArgument ImplicitBeanArchiveWithSystemPropertyTest>Arquillian.run:164->testImplicitArchiveDiscovered:56 » IllegalArgument Tests run: 27, Failures: 17, Errors: 0, Skipped: 0 {code} > Enable CDI 2.0 TCK SE Tests > --------------------------- > > Key: OWB-1206 > URL: https://issues.apache.org/jira/browse/OWB-1206 > Project: OpenWebBeans > Issue Type: Improvement > Reporter: John D. Ament > Attachments: OWB_1206.patch, OWB_1206_v2.patch > > > The CDI 2.0 TCK tests for Java SE are currently disabled. This is a holder > ticket to: > - Enable the suite > - Fix whatever tests may fail -- This message was sent by Atlassian JIRA (v6.4.14#64029)