Author: jpeterka
Date: 2011-06-02 12:42:46 -0400 (Thu, 02 Jun 2011)
New Revision: 31774
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java
Log:
[hb-bot-test] project check updated
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java
===================================================================
---
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java 2011-06-02
16:39:57 UTC (rev 31773)
+++
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java 2011-06-02
16:42:46 UTC (rev 31774)
@@ -44,8 +44,7 @@
* Prepare project and classes
*/
@BeforeClass
- public static void prepare() {
- log.info("Hibernate All Test Started");
+ public static void prepare() {
util.waitForNonIgnoredJobs();
}
@@ -81,7 +80,9 @@
*/
public static void prepareProject() {
- if (projectCreated) return;
+ // check if project is created
+ boolean projectExist = eclipse.isProjectInPackageExplorer(Project.PROJECT_NAME);
+ if (projectExist) return;
eclipse.openPerspective(PerspectiveType.JAVA);
eclipse.showView(ViewType.PACKAGE_EXPLORER);