directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1681433 - in /directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots: DeleteDialogBot.java utils/JobWatcher.java
Date Sun, 24 May 2015 10:30:40 GMT
Author: seelmann
Date: Sun May 24 10:30:39 2015
New Revision: 1681433

URL: http://svn.apache.org/r1681433
Log:
Wait unitl delete job is finished.

Modified:
    directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/DeleteDialogBot.java
    directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/utils/JobWatcher.java

Modified: directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/DeleteDialogBot.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/DeleteDialogBot.java?rev=1681433&r1=1681432&r2=1681433&view=diff
==============================================================================
--- directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/DeleteDialogBot.java
(original)
+++ directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/DeleteDialogBot.java
Sun May 24 10:30:39 2015
@@ -55,6 +55,10 @@ public class DeleteDialogBot extends Dia
         {
             watcher = new JobWatcher( BrowserCoreMessages.jobs__delete_entries_name_n );
         }
+        else if ( DELETE_SERVER.equals( title ) )
+        {
+            watcher = new JobWatcher( "Delete Server" );
+        }
 
         super.clickButton( "OK" );
 

Modified: directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/utils/JobWatcher.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/utils/JobWatcher.java?rev=1681433&r1=1681432&r2=1681433&view=diff
==============================================================================
--- directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/utils/JobWatcher.java
(original)
+++ directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/utils/JobWatcher.java
Sun May 24 10:30:39 2015
@@ -61,7 +61,7 @@ public class JobWatcher
             public void done( IJobChangeEvent event )
             {
                 // if the done job has the expected name we are done
-                if ( jobName.equals( event.getJob().getName() ) )
+                if ( event.getJob().getName().startsWith( jobName ) )
                 {
                     done.set( true );
                     jobManager.removeJobChangeListener( listener );
@@ -95,7 +95,7 @@ public class JobWatcher
                 Job[] find = jobManager.find( null );
                 for ( Job job : find )
                 {
-                    if ( jobName.equals( job.getName() ) )
+                    if ( job.getName().startsWith( jobName ) )
                     {
                         running = true;
                         break;



Mime
View raw message