Author: akazakov
Date: 2011-11-09 20:11:28 -0500 (Wed, 09 Nov 2011)
New Revision: 36258
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java
Log:
https://issues.jboss.org/browse/JBIDE-10141 CDI Tools: Extend JBoss Perspective
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/MANIFEST.MF 2011-11-10 01:06:20
UTC (rev 36257)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/MANIFEST.MF 2011-11-10 01:11:28
UTC (rev 36258)
@@ -39,5 +39,6 @@
org.eclipse.wst.common.frameworks,
org.eclipse.jst.jsf.ui,
org.eclipse.jst.jsf.core,
- org.eclipse.wst.common.frameworks.ui
+ org.eclipse.wst.common.frameworks.ui,
+ org.jboss.tools.common.ui
Export-Package: org.jboss.tools.cdi.ui.test
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java 2011-11-10
01:06:20 UTC (rev 36257)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/perspective/CDIPerspectiveTest.java 2011-11-10
01:11:28 UTC (rev 36258)
@@ -17,6 +17,7 @@
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.WorkbenchException;
+import org.jboss.tools.common.ui.JBossPerspectiveFactory;
import org.jboss.tools.test.util.WorkbenchUtils;
/**
@@ -28,9 +29,24 @@
* Tests JEE perspective has CDI/JSF stuff
* @throws WorkbenchException
*/
- public void testPerspective() throws WorkbenchException {
+ public void testJEEPerspective() throws WorkbenchException {
IWorkbenchPage page =
WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow().openPage("org.eclipse.jst.j2ee.J2EEPerspective",
null);
assertNotNull(page);
+ assertShortcuts(page);
+ }
+
+ /**
+ * Tests JBoss perspective has CDI/JSF stuff
+ * See
https://issues.jboss.org/browse/JBIDE-10141
+ * @throws WorkbenchException
+ */
+ public void testJBossPerspective() throws WorkbenchException {
+ IWorkbenchPage page =
WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow().openPage(JBossPerspectiveFactory.PERSPECTIVE_ID,
null);
+ assertNotNull(page);
+ assertShortcuts(page);
+ }
+
+ private void assertShortcuts(IWorkbenchPage page) {
String[] shortcuts = page.getNewWizardShortcuts();
Set<String> shortcutSet = new HashSet<String>();
for (String shortcut : shortcuts) {