-
Bug
-
Resolution: Done
-
Major
-
1.0.6.Final, 1.2.2.Final, 1.1.5.Final
-
None
There are several tests in the TCK testing the same type of assertion:
If two instances of the same qualifier type are given, an IllegalArgumentException is thrown.
The TCK tests these assertions by using two instances of the same annotation type. In addition, these two instances are equal. It would be better to do a more strict check and verify with two different instances of the same annotation type, e.g. @Named("foo") and @Named("bar")
Affected tests:
https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/event/fires/FireEventTest.java#L92
https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/extensions/bean/bytype/BeanByTypeTest.java#L98
https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/interceptors/definition/InterceptorDefinitionTest.java#L172
https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/event/resolve/binding/DuplicateBindingTypesWhenResolvingTest.java#L52
https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/lookup/dynamic/DynamicLookupTest.java#L68
https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/event/select/SelectEventTest.java#L90
https://github.com/cdi-spec/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/event/select/SelectEventTest.java#L101