directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r881472 - /directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/ConnectionsViewBot.java
Date Tue, 17 Nov 2009 20:02:29 GMT
Author: seelmann
Date: Tue Nov 17 20:02:28 2009
New Revision: 881472

URL: http://svn.apache.org/viewvc?rev=881472&view=rev
Log:
Don't sleep, wait till connection is opened.

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

Modified: directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/ConnectionsViewBot.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/ConnectionsViewBot.java?rev=881472&r1=881471&r2=881472&view=diff
==============================================================================
--- directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/ConnectionsViewBot.java
(original)
+++ directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/ConnectionsViewBot.java
Tue Nov 17 20:02:28 2009
@@ -28,6 +28,8 @@
 import org.apache.directory.studio.connection.core.ConnectionParameter;
 import org.apache.directory.studio.connection.core.ConnectionParameter.AuthenticationMethod;
 import org.apache.directory.studio.connection.core.ConnectionParameter.EncryptionMethod;
+import org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable;
+import org.apache.directory.studio.connection.core.jobs.StudioConnectionJob;
 import org.apache.directory.studio.test.integration.ui.ContextMenuHelper;
 import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
 import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
@@ -116,6 +118,7 @@
 
     }
 
+
     /**
      * Creates the test connection.
      * 
@@ -147,9 +150,10 @@
         rootConnectionFolder.addConnectionId( connection.getId() );
 
         selectConnection( name );
-        // new OpenConnectionsJob( connection ).execute();
+        StudioConnectionJob job = new StudioConnectionJob( new OpenConnectionsRunnable( connection
) );
+        job.execute();
+        job.join();
 
-        Thread.sleep( 1000 );
         return connection;
     }
 



Mime
View raw message