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

Annotated Type test fails depending on constructor ordering

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.Final, 2.0.5.Final
    • 2.0.4.Final
    • Tests
    • None
    • Weld, Open Liberty

      The test AnnotatedTypeConfiguratorTest.configuratorInitializedWithOriginalAT() looks to be incorrect as the wrong constructor of the Cat class might be tested.

      The test filters the list of Cat constructors to get a list of constructors with 1 parameter, but there are two constructors that might be returned:

      annotatedConstructors = [
      [BackedAnnotatedConstructor] public org.jboss.cdi.tck.tests.extensions.configurators.annotatedTypeConfigurator.Cat(String),
      [BackedAnnotatedConstructor] @Inject public org.jboss.cdi.tck.tests.extensions.configurators.annotatedTypeConfigurator.Cat(@Cats Feed)
      ]

      The test expects the constructor with the Feed parameter to be returned and will fail if the constructor with the String parameter is returned instead.

              manovotn Matěj Novotný
              hwibell_jira Hank Ibell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: