directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r888142 - /directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java
Date Mon, 07 Dec 2009 21:31:03 GMT
Author: seelmann
Date: Mon Dec  7 21:31:01 2009
New Revision: 888142

URL: http://svn.apache.org/viewvc?rev=888142&view=rev
Log:
Fix timing issue

Modified:
    directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java

Modified: directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java?rev=888142&r1=888141&r2=888142&view=diff
==============================================================================
--- directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java
(original)
+++ directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/NewEntryWizardTest.java
Mon Dec  7 21:31:01 2009
@@ -41,6 +41,7 @@
 import org.apache.directory.studio.test.integration.ui.bots.ReferralDialogBot;
 import org.apache.directory.studio.test.integration.ui.bots.StudioBot;
 import org.eclipse.jface.dialogs.ErrorDialog;
+import org.eclipse.swtbot.swt.finder.utils.SWTUtils;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -307,6 +308,8 @@
 
         // click cancel button, check the wizard is not closed
         referralDialogBot.clickCancelButton();
+        // timing issues, use ugly sleep for now, should use some condition but have no idea.

+        SWTUtils.sleep( 1000 );
         assertTrue( wizardBot.isVisible() );
         assertTrue( wizardBot.isFinishButtonEnabled() );
 



Mime
View raw message