Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-841

Incorrect assumption around BeanManager visibility of Beans in org.jboss.weld.tests.beanDeployment.managed.single.BootstrapTest

    XMLWordPrintable

Details

    • Hide

      1. get latest nightly of glassfish from http://dlc.sun.com.edgesuite.net/glassfish/3.1/nightly/ and unzip to say $INSTALL_ROOT
      2. $INSTALL_ROOT/glassfish3/glassfish/bin/asadmin start-domain domain1
      3. cd to weld/core/tests-arquillian
      4. mvn test -P glassfish-remote -Dtest=org.jboss.weld.tests.beanDeployment.managed.single.BootstrapTest

      Show
      1. get latest nightly of glassfish from http://dlc.sun.com.edgesuite.net/glassfish/3.1/nightly/ and unzip to say $INSTALL_ROOT 2. $INSTALL_ROOT/glassfish3/glassfish/bin/asadmin start-domain domain1 3. cd to weld/core/tests-arquillian 4. mvn test -P glassfish-remote -Dtest=org.jboss.weld.tests.beanDeployment.managed.single.BootstrapTest

    Description

      The org.jboss.weld.tests.beanDeployment.managed.single.BootstrapTest, and other related tests [listed below], fails against latest GlassFish 3.1. In this test, the Bean[Tuna] in the test is packaged in a bundled library under WEB-INF/lib. The Test Servlet uses a (non-spec) method called getBeans() that just returns the beans owned by the WAR's BeanManager and asserts if Tuna is found. An alternative method, getAccessibleBeans(), which should return all accessible beans, should be used. [Thanks to Pete for his analysis.]

      > >> Failed tests:
      > >> testBeanBelongingToParentActivityBelongsToChildActivity(org.jboss.weld.tests.activities.ActivitiesTest)
      > >> testObserverBelongingToParentActivityBelongsToChildActivity(org.jboss.weld.tests.activities.ActivitiesTest)
      > >> testObserverBelongingToParentFiresForChildActivity(org.jboss.weld.tests.activities.ActivitiesTest)
      > >> testInjectedManagerIsCurrentActivity(org.jboss.weld.tests.activities.current.InjectedManagerCurrentActivityTest)
      > >> testMultipleSimpleBean(org.jboss.weld.tests.beanDeployment.managed.multiple.BootstrapTest)
      > >> testSingleSimpleBean(org.jboss.weld.tests.beanDeployment.managed.single.BootstrapTest)
      > >> testMultipleEnterpriseAndSimpleBean(org.jboss.weld.tests.beanDeployment.mixed.BootstrapTest)
      > >> testProducerMethodBean(org.jboss.weld.tests.beanDeployment.producers.singleProducerMethod.BootstrapTest)
      > >> testMultipleEnterpriseBean(org.jboss.weld.tests.beanDeployment.session.multiple.BootstrapTest)
      > >>
      > >> Tests in error:
      > >> testBeanBelongingToParentActivityCanBeInjectedIntoChildActivityBean(org.jboss.weld.tests.activities.ActivitiesTest)
      > >> testInstanceProcessedByCurrentActivity(org.jboss.weld.tests.activities.current.InstanceCurrentActivityTest)

      Attachments

        Activity

          People

            rhn-engineering-jharting Jozef Hartinger
            sivakumart_jira Sivakumar Thyagarajan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: