Author: scabanovich
Date: 2011-03-03 17:43:50 -0500 (Thu, 03 Mar 2011)
New Revision: 29485
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java
Log:
JBIDE-8515
https://issues.jboss.org/browse/JBIDE-8515
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java 2011-03-03
22:22:27 UTC (rev 29484)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java 2011-03-03
22:43:50 UTC (rev 29485)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.cdi.ui.test.wizard;
+import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
@@ -391,7 +392,7 @@
}
}
- public void testNewBeanWizard() {
+ public void testNewBeanWizard() throws Exception {
WizardContext context = new WizardContext();
context.init("org.jboss.tools.cdi.ui.wizard.NewBeanCreationWizard",
PACK_NAME, BEAN_NAME);JobUtils.waitForIdle(2000);
@@ -410,6 +411,14 @@
assertTrue(text.contains("@Named"));
assertTrue(text.contains("\"myNewBean\""));
+
+ IType type = (IType)context.wizard.getCreatedElement();
+ int f = type.getFlags();
+ assertTrue(Modifier.isPublic(f));
+ assertFalse(Modifier.isAbstract(f));
+ String[] is = type.getSuperInterfaceNames();
+ assertEquals(1, is.length);
+ assertEquals("Serializable", is[0]);
} finally {
context.close();
}