Author: akazakov
Date: 2010-03-17 09:57:43 -0400 (Wed, 17 Mar 2010)
New Revision: 20886
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5808
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java 2010-03-17
13:53:36 UTC (rev 20885)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java 2010-03-17
13:57:43 UTC (rev 20886)
@@ -203,4 +203,20 @@
assertContainsQualifier(bean, hairy);
assertContainsQualifierType(bean, "javax.enterprise.inject.Any");
}
+
+ /**
+ * section 4.1 aga)
+ * @throws JavaModelException
+ */
+ public void testQualifierNotDeclaredInheritedIsNotIndirectlyInherited() throws
JavaModelException {
+ Set<IBean> beans =
getBeans("org.jboss.jsr299.tck.tests.definition.qualifier.MiniatureShetlandPony");
+ assertEquals("Wrong number of beans.", 1, beans.size());
+ IBean bean = beans.iterator().next();
+ Set<IQualifier> qualifiers = bean.getQualifiers();
+ assertEquals(
+ "Wrong number of qualifiers for
org.jboss.jsr299.tck.tests.definition.qualifier.BorderCollie type.",
+ 2, qualifiers.size());
+ assertContainsQualifierType(bean, "javax.enterprise.inject.Default");
+ assertContainsQualifierType(bean, "javax.enterprise.inject.Any");
+ }
}
\ No newline at end of file