Author: scabanovich
Date: 2010-12-13 12:41:25 -0500 (Mon, 13 Dec 2010)
New Revision: 27417
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-13
17:40:07 UTC (rev 27416)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/NewCDIWizardTest.java 2010-12-13
17:41:25 UTC (rev 27417)
@@ -36,6 +36,7 @@
import org.jboss.tools.cdi.core.ICDIProject;
import org.jboss.tools.cdi.ui.CDIUIPlugin;
//import org.jboss.tools.cdi.ui.wizard.NewCDIAnnotationWizardPage;
+import org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralWizardPage;
import org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard;
import org.jboss.tools.cdi.ui.wizard.NewDecoratorWizardPage;
import org.jboss.tools.cdi.ui.wizard.NewInterceptorBindingWizardPage;
@@ -290,6 +291,31 @@
}
}
+ public void testNewAnnotationLiteralWizard() {
+ WizardContext context = new WizardContext();
+ context.init("org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard",
+ PACK_NAME, QUALIFIER_NAME + "Literal");JobUtils.waitForIdle(2000);
+ JobUtils.waitForIdle(2000);
+ ICDIProject cdi = CDICorePlugin.getCDIProject(context.tck, true);
+
+ 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();
+
+ String text = context.getNewTypeContent();
+ System.out.println(text);
+
+ assertTrue(text.contains("AnnotationLiteral<" + QUALIFIER_NAME +
">"));
+ } finally {
+ context.close();
+ }
+ }
+
public void testNewBeansXMLWizard() throws CoreException {
NewBeansXMLWizardContext context = new NewBeansXMLWizardContext();
context.init("org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard");