directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r888143 - /directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
Date Mon, 07 Dec 2009 21:32:41 GMT
Author: seelmann
Date: Mon Dec  7 21:32:40 2009
New Revision: 888143

URL: http://svn.apache.org/viewvc?rev=888143&view=rev
Log:
Close LDAP Browser view after each test because sometimes it does not respond

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

Modified: directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java?rev=888143&r1=888142&r2=888143&view=diff
==============================================================================
--- directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
(original)
+++ directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
Mon Dec  7 21:32:40 2009
@@ -97,6 +97,16 @@
                     workbench.showPerspective(
                         "org.apache.directory.studio.ldapbrowser.ui.perspective.BrowserPerspective",
window );
 
+                    // close "LDAP Browser view" as it sometimes does not respond, will be
re-opened by the following reset
+                    for ( IViewReference viewref : page.getViewReferences() )
+                    {
+                        if ( "org.apache.directory.studio.ldapbrowser.ui.views.browser.BrowserView".equals(
viewref
+                            .getId() ) )
+                        {
+                            page.hideView( viewref );
+                        }
+                    }
+
                     // reset LDAP perspective
                     if ( page.getActivePart() != null )
                     {



Mime
View raw message