Author: jpeterka
Date: 2011-03-15 12:05:04 -0400 (Tue, 15 Mar 2011)
New Revision: 29795
Added:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/BasicHibernateTest.java
Log:
hibernatebot: basic hibernate template test added
Added:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/BasicHibernateTest.java
===================================================================
---
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/BasicHibernateTest.java
(rev 0)
+++
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/BasicHibernateTest.java 2011-03-15
16:05:04 UTC (rev 29795)
@@ -0,0 +1,35 @@
+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.DB;
+import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem.Perspective;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem.View.HibernateHibernateConfigurations;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Basic Hibernate tests
+ */
+@SWTBotTestRequires( db=@DB,perspective="Hibernate")
+public class BasicHibernateTest extends HibernateTest {
+ @BeforeClass
+ /**
+ * Setup prerequisites for this test
+ */
+ public static void setUpTest() {
+
+ eclipse.maximizeActiveShell();
+ eclipse.closeView(IDELabel.View.WELCOME);
+
+ prepareProject();
+ util.waitForNonIgnoredJobs();
+ }
+
+ @Test
+ public void testItI() {
+ open.viewOpen(HibernateHibernateConfigurations.LABEL);
+ open.perspective(Perspective.HIBERNATE.LABEL);
+ }
+}
Property changes on:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/BasicHibernateTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Show replies by date