Author: jpeterka
Date: 2011-03-15 11:21:50 -0400 (Tue, 15 Mar 2011)
New Revision: 29791
Added:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/HibernatePerspectiveTest.java
Log:
hibernatebot: perspective test added
Added:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/HibernatePerspectiveTest.java
===================================================================
---
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/HibernatePerspectiveTest.java
(rev 0)
+++
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/HibernatePerspectiveTest.java 2011-03-15
15:21:50 UTC (rev 29791)
@@ -0,0 +1,46 @@
+ /*******************************************************************************
+ * Copyright (c) 2007-2009 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.hibernate.ui.bot.testcase;
+
+import org.jboss.tools.hibernate.ui.bot.testsuite.HibernateTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.junit.Test;
+
+@SWTBotTestRequires(clearProjects = false, perspective="Hibernate")
+public class HibernatePerspectiveTest extends HibernateTest {
+
+ /**
+ * TC 17 - Check presence of basic hibernate views
+ */
+ @Test
+ public void openPerspectiveElements() {
+ eclipse.closeView(IDELabel.View.WELCOME);
+
+ open.perspective(ActionItem.Perspective.HIBERNATE.LABEL);
+ bot.sleep(TIME_1S);
+ open.viewOpen(ActionItem.View.HibernateHibernateConfigurations.LABEL);
+ bot.sleep(TIME_1S);
+ open.viewOpen(ActionItem.View.HibernateHibernateDynamicSQLPreview.LABEL);
+ bot.sleep(TIME_1S);
+ open.viewOpen(ActionItem.View.HibernateHibernateQueryResult.LABEL);
+ bot.sleep(TIME_1S);
+ }
+
+ @Test
+ public void checkHibernateTree() {
+ open.perspective(ActionItem.Perspective.HIBERNATE.LABEL);
+ bot.sleep(TIME_1S);
+
+ open.viewOpen(ActionItem.View.HibernateHibernateConfigurations.LABEL);
+ }
+}
Property changes on:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/HibernatePerspectiveTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain