Author: akazakov
Date: 2010-03-10 07:39:27 -0500 (Wed, 10 Mar 2010)
New Revision: 20727
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/BeanDefinitionTest.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/BeanDefinitionTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/BeanDefinitionTest.java 2010-03-10
12:23:15 UTC (rev 20726)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/BeanDefinitionTest.java 2010-03-10
12:39:27 UTC (rev 20727)
@@ -186,6 +186,30 @@
}
/**
+ * section 3.1.3 c)
+ *
+ * @throws JavaModelException
+ */
+ public void testBeanExtendsAnotherBean() throws JavaModelException {
+ Set<IBean> beans =
getBeans("org.jboss.jsr299.tck.tests.definition.bean.Spider");
+ assertFalse("No beans found for org.jboss.jsr299.tck.tests.definition.bean.Spider
type", beans.isEmpty());
+ beans = getBeans("org.jboss.jsr299.tck.tests.definition.bean.Tarantula");
+ assertFalse("No beans found for
org.jboss.jsr299.tck.tests.definition.bean.Tarantula type", beans.isEmpty());
+ }
+
+ /**
+ * section 11.1 bb)
+ *
+ * @throws JavaModelException
+ */
+ public void testBeanClassOnSimpleBean() throws JavaModelException {
+ Set<IBean> beans =
getBeans("org.jboss.jsr299.tck.tests.definition.bean.Horse");
+ assertEquals("There should be the only bean with
org.jboss.jsr299.tck.tests.definition.bean.Horse type", 1, beans.size());
+ IBean bean = beans.iterator().next();
+ assertEquals("Wrong Bean Class type of
org.jboss.jsr299.tck.tests.definition.bean.Horse bean",
"org.jboss.jsr299.tck.tests.definition.bean.Horse",
bean.getBeanClass().getFullyQualifiedName());
+ }
+
+ /**
* e) A bean comprises of an optional bean EL name.
*/
public void testNonDefaultNamed() {