Author: akazakov
Date: 2011-11-10 19:58:59 -0500 (Thu, 10 Nov 2011)
New Revision: 36290
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JBossPerspectiveTest.java
Log:
https://issues.jboss.org/browse/JBIDE-10145
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JBossPerspectiveTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JBossPerspectiveTest.java 2011-11-11
00:20:52 UTC (rev 36289)
+++
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JBossPerspectiveTest.java 2011-11-11
00:58:59 UTC (rev 36290)
@@ -15,7 +15,7 @@
import junit.framework.TestCase;
-import org.eclipse.ui.IViewPart;
+import org.eclipse.gef.ui.views.palette.PaletteView;
import org.eclipse.ui.IViewReference;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.WorkbenchException;
@@ -35,14 +35,12 @@
public void testJBossPerspective() throws WorkbenchException {
IWorkbenchPage page =
WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow().openPage(JBossPerspectiveFactory.PERSPECTIVE_ID,
null);
assertNotNull(page);
- IViewPart[] views = page.getViews();
- System.out.println("Views number: " + views.length);
IViewReference[] viewReferences = page.getViewReferences();
Set<String> viewIds = new HashSet<String>();
for (IViewReference viewReference : viewReferences) {
System.out.println("View ID: " + viewReference.getId());
viewIds.add(viewReference.getId());
}
- assertTrue("Have not found org.eclipse.gef.ui.palette_view in
org.eclipse.jst.j2ee.J2EEPerspective.",
viewIds.contains("org.eclipse.gef.ui.palette_view"));
+ assertTrue("Have not found " + PaletteView.ID + " in " +
JBossPerspectiveFactory.PERSPECTIVE_ID + ".",
viewIds.contains(PaletteView.ID));
}
}
\ No newline at end of file