Author: scabanovich
Date: 2010-12-15 10:11:00 -0500 (Wed, 15 Dec 2010)
New Revision: 27509
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java
Log:
JBIDE-7875
https://issues.jboss.org/browse/JBIDE-7875
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 2010-12-15
15:10:21 UTC (rev 27508)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java 2010-12-15
15:11:00 UTC (rev 27509)
@@ -300,9 +300,7 @@
try {
NewAnnotationLiteralWizardPage page = (NewAnnotationLiteralWizardPage)context.page;
-
- List<String> interfacesNames = new ArrayList<String>();
- interfacesNames.add("java.util.Map<K,V>");
+
page.setQualifier(PACK_NAME + "." + QUALIFIER_NAME);
context.wizard.performFinish();
@@ -316,6 +314,30 @@
}
}
+ public void testNewAnnotationLiteralWizardWithMembers() {
+ WizardContext context = new WizardContext();
+ context.init("org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard",
+ PACK_NAME, "NewLiteral");JobUtils.waitForIdle(2000);
+ JobUtils.waitForIdle(2000);
+ ICDIProject cdi = CDICorePlugin.getCDIProject(context.tck, true);
+
+ try {
+ NewAnnotationLiteralWizardPage page = (NewAnnotationLiteralWizardPage)context.page;
+
+ page.setQualifier("javax.enterprise.inject.New");
+
+ context.wizard.performFinish();
+
+ String text = context.getNewTypeContent();
+ System.out.println(text);
+
+ assertTrue(text.contains("AnnotationLiteral<New>"));
+ assertTrue(text.contains("private final Class<?> value;"));
+ } finally {
+ context.close();
+ }
+ }
+
public void testNewBeansXMLWizard() throws CoreException {
NewBeansXMLWizardContext context = new NewBeansXMLWizardContext();
context.init("org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard");