CDI TCK
  1. CDI TCK
  2. CDITCK-154

TCK Test Failure: Assertion Error After Injecting Into JSF Managed Bean

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Rejected
    • Affects Version/s: 1.0.1.Final
    • Fix Version/s: None
    • Component/s: Tests
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Environment:
      GlassFish v3.0.1
    • Similar Issues:
      Show 10 results 

      Description

      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] ********************************************************************

        Activity

        Hide
        Roger Kitain
        added a comment -

        Pete Muir - 05/May/10 07:20 AM
        First failure is due to a known GlassFish issue IIRC (it doesn't support injection into JSF managed beans).
        [ Show » ]
        Pete Muir - 05/May/10 07:20 AM First failure is due to a known GlassFish issue IIRC (it doesn't support injection into JSF managed beans).

        Show
        Roger Kitain
        added a comment - Pete Muir - 05/May/10 07:20 AM First failure is due to a known GlassFish issue IIRC (it doesn't support injection into JSF managed beans). [ Show » ] Pete Muir - 05/May/10 07:20 AM First failure is due to a known GlassFish issue IIRC (it doesn't support injection into JSF managed beans).
        Hide
        Roger Kitain
        added a comment -

        The "Farm" bean in the test is missing the @Named annotation.
        The test passes with the @Named annotation.

        Show
        Roger Kitain
        added a comment - The "Farm" bean in the test is missing the @Named annotation. The test passes with the @Named annotation.
        Hide
        Pete Muir
        added a comment -

        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.

        Show
        Pete Muir
        added a comment - 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.
        Hide
        Roger Kitain
        added a comment -

        This test will be added to the exclude list in its current state.
        There is a new issue: https://jira.jboss.org/jira/browse/CDITCK-159 related to this test.

        Show
        Roger Kitain
        added a comment - This test will be added to the exclude list in its current state. There is a new issue: https://jira.jboss.org/jira/browse/CDITCK-159 related to this test.

          People

          • Assignee:
            Pete Muir
            Reporter:
            Roger Kitain
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: