Author: akazakov
Date: 2011-11-09 19:39:38 -0500 (Wed, 09 Nov 2011)
New Revision: 36256
Added:
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/CommonUITestSuite.java
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/JBossPerspectiveTest.java
Removed:
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/internal/ui/preferencevalue/CommonUITestSuite.java
Modified:
trunk/common/tests/org.jboss.tools.common.ui.test/META-INF/MANIFEST.MF
Log:
https://issues.jboss.org/browse/JBIDE-10140 JBoss Perspective
Modified: trunk/common/tests/org.jboss.tools.common.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/tests/org.jboss.tools.common.ui.test/META-INF/MANIFEST.MF 2011-11-10
00:17:15 UTC (rev 36255)
+++ trunk/common/tests/org.jboss.tools.common.ui.test/META-INF/MANIFEST.MF 2011-11-10
00:39:38 UTC (rev 36256)
@@ -8,7 +8,9 @@
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.jdt.core,
- org.junit
+ org.junit,
+ org.jboss.tools.common.ui,
+ org.jboss.tools.tests
Import-Package: org.jboss.tools.common.ui.preferencevalue
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Deleted:
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/internal/ui/preferencevalue/CommonUITestSuite.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/internal/ui/preferencevalue/CommonUITestSuite.java 2011-11-10
00:17:15 UTC (rev 36255)
+++
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/internal/ui/preferencevalue/CommonUITestSuite.java 2011-11-10
00:39:38 UTC (rev 36256)
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.common.internal.ui.preferencevalue;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-
-(a)RunWith(Suite.class)
-(a)Suite.SuiteClasses({
- StringsPreferenceValueTest.class
-})
-/**
- * @author André Dietisheim
- */
-public class CommonUITestSuite {
-
-}
Copied:
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/CommonUITestSuite.java
(from rev 36254,
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/internal/ui/preferencevalue/CommonUITestSuite.java)
===================================================================
---
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/CommonUITestSuite.java
(rev 0)
+++
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/CommonUITestSuite.java 2011-11-10
00:39:38 UTC (rev 36256)
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.common.ui;
+
+import org.jboss.tools.common.internal.ui.preferencevalue.StringsPreferenceValueTest;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+
+(a)RunWith(Suite.class)
+(a)Suite.SuiteClasses({
+ StringsPreferenceValueTest.class,
+ JBossPerspectiveTest.class
+})
+/**
+ * @author André Dietisheim
+ */
+public class CommonUITestSuite {
+
+}
\ No newline at end of file
Property changes on:
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/CommonUITestSuite.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/JBossPerspectiveTest.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/JBossPerspectiveTest.java
(rev 0)
+++
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/JBossPerspectiveTest.java 2011-11-10
00:39:38 UTC (rev 36256)
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.common.ui;
+
+import static org.junit.Assert.assertNotNull;
+
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.WorkbenchException;
+import org.jboss.tools.test.util.WorkbenchUtils;
+import org.junit.Test;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class JBossPerspectiveTest {
+
+ @Test
+ public void testPerspective() throws WorkbenchException {
+ IWorkbenchPage page =
WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow().openPage(JBossPerspectiveFactory.PERSPECTIVE_ID,
null);
+ assertNotNull(page);
+ }
+}
\ No newline at end of file
Property changes on:
trunk/common/tests/org.jboss.tools.common.ui.test/src/org/jboss/tools/common/ui/JBossPerspectiveTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain