Author: scabanovich
Date: 2011-03-11 17:35:37 -0500 (Fri, 11 Mar 2011)
New Revision: 29720
Modified:
branches/jbosstools-3.2.x/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:
branches/jbosstools-3.2.x/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java
===================================================================
---
branches/jbosstools-3.2.x/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)
+++
branches/jbosstools-3.2.x/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java 2011-03-11
22:35:37 UTC (rev 29720)
@@ -386,6 +386,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();
@@ -398,9 +406,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();
}