[
https://jira.jboss.org/jira/browse/CDITCK-154?page=com.atlassian.jira.plu...
]
Pete Muir closed CDITCK-154.
----------------------------
Resolution: Rejected
Assignee: Pete Muir
Farm is a *JSF* managed bean, not a CDI managed bean. @Named is a CDI annotation. By
adding @Named to the Farm bean it will simply cause CDI to expose the bean through EL, NOT
JSF, hence rendering the test incorrect.
TCK Test Failure: Assertion Error After Injecting Into JSF Managed
Bean
-----------------------------------------------------------------------
Key: CDITCK-154
URL:
https://jira.jboss.org/jira/browse/CDITCK-154
Project: CDI TCK
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Tests
Affects Versions: 1.0.1.Final
Environment: GlassFish v3.0.1
Reporter: Roger Kitain
Assignee: Pete Muir
The following TCK tests fail with assertion errors:
TEST NAME:
org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest.testInjectionIntoJSFManagedBean
TEST LOG:
[testng] -deploy:
[testng] [gf.echo] Deploying:
/var/folders/8T/8TkU3CL-FMec7iJWxn8tg++++TI/-Tmp-/org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest.war
[testng] [gf.echo] 0 archive(s) to undeploy
[testng] [gf.echo] 1 archive(s) to deploy
[testng] [copy] Copying 1 file to
/Users/rogerk/weld/tck/glassfishv3/glassfish/domains/domain1/autodeploy
[testng] [gf.echo] Deploying archive:
/var/folders/8T/8TkU3CL-FMec7iJWxn8tg++++TI/-Tmp-/org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest.war
[testng] [gf.echo] Deployment Succeeded:
org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest.war
[testng] java.lang.AssertionError
[testng] at
org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest.testInjectionIntoJSFManagedBean(InjectionIntoNonContextualComponentTest.java:163)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:609)
[testng] at org.testng.internal.MethodHelper$1.runTestMethod(MethodHelper.java:727)
[testng] at org.jboss.testharness.AbstractTest.run(AbstractTest.java:244)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at org.testng.internal.MethodHelper.invokeHookable(MethodHelper.java:735)
[testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:525)
[testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:686)
[testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1018)
[testng] at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:128)
[testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
[testng] at org.testng.TestRunner.runWorkers(TestRunner.java:759)
[testng] at org.testng.TestRunner.privateRun(TestRunner.java:592)
[testng] at org.testng.TestRunner.run(TestRunner.java:486)
[testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:332)
[testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327)
[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:299)
[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:204)
[testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:912)
[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:876)
[testng] at org.testng.TestNG.run(TestNG.java:784)
[testng] at org.testng.TestNG.privateMain(TestNG.java:949)
[testng] at org.testng.TestNG.main(TestNG.java:922)
[testng] ********************************************************************
[testng] FINISHED TEST:
FAILED........org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest.testInjectionIntoJSFManagedBean
[testng] ********************************************************************
--
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