[jbosstools-commits] JBoss Tools SVN: r39936 - trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/view.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Mar 30 05:04:02 EDT 2012


Author: jpeterka
Date: 2012-03-30 05:04:00 -0400 (Fri, 30 Mar 2012)
New Revision: 39936

Modified:
   trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/view/PackageInfoTest.java
Log:
HB ui bot PackageInfo test table problem fixed

Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/view/PackageInfoTest.java
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/view/PackageInfoTest.java	2012-03-30 04:55:23 UTC (rev 39935)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hb/ui/bot/test/view/PackageInfoTest.java	2012-03-30 09:04:00 UTC (rev 39936)
@@ -44,6 +44,7 @@
 					
 		String label = "Details are not available for the current selection.";
 		jd.bot().waitWhile(waitForWidget(withLabel(label)));
+		jd.setFocus();
 
 		SWTBotTwistie twistie = bot.twistieByLabel("Generic Generators");
 		while (!twistie.isExpanded()) {
@@ -52,12 +53,12 @@
 		
 		final String genname = "myuuidgen";
 		final String strategy = "uuid";
-		SWTBotTable table = jd.bot().table(0);
+		SWTBotTable table = jd.bot().table(1);
 		assertTrue(table.containsItem(genname));
-		table.getTableItem(genname).click();
-
-		assertTrue(bot.textWithLabel("Name:").getText().equals(genname));
-		assertTrue(bot.textWithLabel("Stragegy:").getText().equals(strategy));				
+		table.getTableItem(genname).select();
+		
+		assertTrue(jd.bot().textWithLabel("Name:").getText().equals(genname));
+		assertTrue(jd.bot().comboBoxWithLabel("Strategy:").getText().equals(strategy));
 	}
 	
 }



More information about the jbosstools-commits mailing list