Author: scabanovich
Date: 2011-03-11 17:30:13 -0500 (Fri, 11 Mar 2011)
New Revision: 29719
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-11
22:25:12 UTC (rev 29718)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java 2011-03-11
22:30:13 UTC (rev 29719)
@@ -404,6 +404,14 @@
page.setBeanName("myNewBean");
+ page.setScope(CDIConstants.SESSION_SCOPED_ANNOTATION_TYPE_NAME);
+ String message = page.getMessage();
+ assertEquals(CDIUIMessages.MESSAGE_BEAN_SHOULD_BE_SERIALIZABLE, message);
+ assertEquals(IMessageProvider.WARNING, page.getMessageType());
+
+ page.setScope(CDIConstants.APPLICATION_SCOPED_ANNOTATION_TYPE_NAME);
+ assertEquals(IMessageProvider.NONE, page.getMessageType());
+
context.wizard.performFinish();
String text = context.getNewTypeContent();
@@ -416,9 +424,9 @@
int f = type.getFlags();
assertTrue(Modifier.isPublic(f));
assertFalse(Modifier.isAbstract(f));
- String[] is = type.getSuperInterfaceNames();
- assertEquals(1, is.length);
- assertEquals("Serializable", is[0]);
+// String[] is = type.getSuperInterfaceNames();
+// assertEquals(1, is.length);
+// assertEquals("Serializable", is[0]);
} finally {
context.close();
}