Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-611

DefaultBeanDiscoveryModeTest should be implicit and contain at least one bean class with BDA

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.Final, 2.0.4.Final
    • 2.0.3.Final
    • None
    • None

      org.jboss.cdi.tck.tests.deployment.discovery.implicit.DefaultBeanDiscoveryModeTest creates an archive with beans.xml which have mode=annotated but have no version.

      According to spec, this would classify as explicit archive which is IMO unintended (class is in package named implicit). Also according to specification, an archive with no version has a default bean discovery mode of all.

      Another problem of the test is that it contains no valid bean class with BDA, only one extension which is disputable (it will effectively be a bean but when scanning the archive, it isn't a bean class with BDA). Adding one another bean class with BDA would solve this.

            manovotn Matěj Novotný
            manovotn Matěj Novotný
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: