Author: jpeterka
Date: 2012-03-19 11:51:20 -0400 (Mon, 19 Mar 2012)
New Revision: 39620
Added:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/perspective/JPAPerspectiveTest.java
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/perspective/PerspectiveTest.java
Log:
JPA perspective test added, HB perspective test updated in hibernate ui bot test
Added:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/perspective/JPAPerspectiveTest.java
===================================================================
---
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/perspective/JPAPerspectiveTest.java
(rev 0)
+++
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/perspective/JPAPerspectiveTest.java 2012-03-19
15:51:20 UTC (rev 39620)
@@ -0,0 +1,24 @@
+package org.jboss.tools.hb.ui.bot.test.perspective;
+
+import org.jboss.tools.hb.ui.bot.test.HibernateBaseTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem;
+import org.junit.Test;
+
+/**
+ * Hibernate perspective ui bot test
+ *
+ * @author jpeterka
+ *
+ */
+@Require(clearProjects = false, perspective = "JPA")
+public class JPAPerspectiveTest extends HibernateBaseTest {
+
+ @Test
+ public void openPerspectiveElements() {
+ open.perspective(ActionItem.Perspective.JPA.LABEL);
+ open.viewOpen(ActionItem.View.JPAJPAStructure.LABEL);
+ open.viewOpen(ActionItem.View.JPAJPADetails.LABEL);
+ open.viewOpen(ActionItem.View.DataManagementDataSourceExplorer.LABEL);
+ }
+}
Property changes on:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/perspective/JPAPerspectiveTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/perspective/PerspectiveTest.java
===================================================================
---
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/perspective/PerspectiveTest.java 2012-03-19
15:44:06 UTC (rev 39619)
+++
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/perspective/PerspectiveTest.java 2012-03-19
15:51:20 UTC (rev 39620)
@@ -3,7 +3,6 @@
import org.jboss.tools.hb.ui.bot.test.HibernateBaseTest;
import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
import org.jboss.tools.ui.bot.ext.gen.ActionItem;
-import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.junit.Test;
/**
@@ -17,8 +16,6 @@
@Test
public void openPerspectiveElements() {
- eclipse.closeView(IDELabel.View.WELCOME);
-
open.perspective(ActionItem.Perspective.HIBERNATE.LABEL);
open.viewOpen(ActionItem.View.HibernateHibernateConfigurations.LABEL);
open.viewOpen(ActionItem.View.HibernateHibernateDynamicSQLPreview.LABEL);
Show replies by date