[jbosstools-commits] JBoss Tools SVN: r22855 - trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Jun 17 09:41:50 EDT 2010


Author: dmaliarevich
Date: 2010-06-17 09:41:50 -0400 (Thu, 17 Jun 2010)
New Revision: 22855

Modified:
   trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6287 , SWTBot test: wrong selection exception was took away.

Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java	2010-06-17 12:15:13 UTC (rev 22854)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java	2010-06-17 13:41:50 UTC (rev 22855)
@@ -13,7 +13,6 @@
 import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox;
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
 import org.jboss.tools.vpe.messages.VpeUIMessages;
@@ -33,12 +32,7 @@
 
 	@Override
 	protected void closeUnuseDialogs() {
-//		try {
-//			SWTBotShell shell = bot.shell(VpeUIMessages.EXTRNALIZE_STRINGS_DIALOG_TITLE);
-//			shell.close();
-//		} catch (Exception e) {
-//			// Do nothing
-//		}
+		
 	}
 
 	@Override
@@ -198,6 +192,12 @@
 		 */
 		editor.toTextEditor().selectRange(13, 0, 1);
 		/*
+		 * There is an exception caused by the fact that
+		 * line delimiter was selected.
+		 * But for this test it's ok, so just ignore this exception.
+		 */
+		setException(null);
+		/*
 		 * Activate the dialog
 		 */
 		bot.toolbarButtonWithTooltip(VpeUIMessages.EXTERNALIZE_STRINGS).click();
@@ -242,7 +242,6 @@
 		 * Close the dialog
 		 */
 		bot.shell(VpeUIMessages.EXTERNALIZE_STRINGS_DIALOG_TITLE).close();
-		
 		/*
 		 * Check selection in the attribute's value
 		 */



More information about the jbosstools-commits mailing list