Author: scabanovich
Date: 2011-11-18 20:09:55 -0500 (Fri, 18 Nov 2011)
New Revision: 36464
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
Log:
JBIDE-10195
https://issues.jboss.org/browse/JBIDE-10195
Seam 2 Components view should show Seam 2 project when it is opened in new window. Test
added.
Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2011-11-19 00:53:14
UTC (rev 36463)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2011-11-19 01:09:55
UTC (rev 36464)
@@ -45,7 +45,25 @@
org.jboss.tools.jst.web,
org.eclipse.jst.jee.web,
org.jboss.tools.jst.text.ext.test,
- org.jboss.tools.jst.web.kb.test
+ org.jboss.tools.jst.web.kb.test,
+ org.eclipse.jst.servlet.ui;bundle-version="1.1.500",
+ org.hibernate.eclipse.console,
+ org.eclipse.jst.j2ee.ui;bundle-version="1.1.500",
+ org.eclipse.wst.xml.ui;bundle-version="1.1.200",
+ org.apache.ant;bundle-version="1.7.1",
+ org.eclipse.datatools.connectivity.ui.dse;bundle-version="1.1.4",
+ org.eclipse.datatools.connectivity.db.generic.ui;bundle-version="1.0.1",
+ org.jboss.tools.common.model.ui,
+ org.hibernate.eclipse,
+ org.eclipse.wst.server.core;bundle-version="1.1.302",
+ org.eclipse.wst.server.ui;bundle-version="1.1.305",
+ org.eclipse.debug.ui;bundle-version="3.7.0",
+ org.eclipse.search;bundle-version="3.6.100",
+ org.eclipse.ltk.core.refactoring;bundle-version="3.5.200",
+ org.eclipse.ltk.ui.refactoring;bundle-version="3.5.100",
+ org.jboss.ide.eclipse.as.core,
+ org.jboss.tools.jsf,
+ org.eclipse.jst.j2ee.web;bundle-version="1.1.500"
Export-Package: org.jboss.tools.seam.ui.test,
org.jboss.tools.seam.ui.test.ca,
org.jboss.tools.seam.ui.test.hyperlink,
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2011-11-19
00:53:14 UTC (rev 36463)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2011-11-19
01:09:55 UTC (rev 36464)
@@ -84,6 +84,22 @@
this.project.build(IncrementalProjectBuilder.FULL_BUILD, null);
JobUtils.waitForIdle();
}
+
+ public void testViewInNewWindow() throws CoreException{
+ int itemCount = 0;
+ SeamCorePlugin.getSeamProject(project, true);
+ IWorkbench workbench = PlatformUI.getWorkbench();
+ IWorkbenchPage page =
workbench.getActiveWorkbenchWindow().openPage(SeamPerspectiveFactory.PERSPECTIVE_ID,
project);
+ try {
+ CommonNavigator navigator = getSeamComponentsView();
+ navigator.getCommonViewer().expandAll();
+ Tree tree = navigator.getCommonViewer().getTree();
+ itemCount = tree.getItemCount();
+ } finally {
+ page.getWorkbenchWindow().close();
+ }
+ assertEquals(1, itemCount);
+ }
public void testAddComponentInXmlFile() throws CoreException{
CommonNavigator navigator = getSeamComponentsView();