Package net.sf.swtbot.widgets

Examples of net.sf.swtbot.widgets.SWTBotTree


        assertEquals( ReferralHandlingMethod.FOLLOW.ordinal(), referralsHandlingMethodOrdinal );

        // create the referral entry
        createReferralEntry();

        final SWTBotTree browserTree = SWTBotUtils.getLdapBrowserTree( bot );

        // expand ou=system, that reads the referral and opens the referral dialog
        final SWTBotTreeItem systemNode = SWTBotUtils.selectNode( bot, browserTree, "DIT", "Root DSE", "ou=system" );
        UIThreadRunnable.asyncExec( bot.getDisplay(), new UIThreadRunnable.VoidResult()
        {
View Full Code Here


        assertEquals( ReferralHandlingMethod.FOLLOW.ordinal(), referralsHandlingMethodOrdinal );

        // create the referral entry
        createReferralEntry();

        final SWTBotTree browserTree = SWTBotUtils.getLdapBrowserTree( bot );

        // expand ou=system, that reads the referral and opens the referral dialog
        final SWTBotTreeItem systemNode = SWTBotUtils.selectNode( bot, browserTree, "DIT", "Root DSE", "ou=system" );
        UIThreadRunnable.asyncExec( bot.getDisplay(), new UIThreadRunnable.VoidResult()
        {
View Full Code Here

        assertEquals( ReferralHandlingMethod.IGNORE.ordinal(), referralsHandlingMethodOrdinal );

        // create the referral entry
        createReferralEntry();

        final SWTBotTree browserTree = SWTBotUtils.getLdapBrowserTree( bot );

        // expand ou=system, that reads the referral and opens the referral dialog
        final SWTBotTreeItem systemNode = SWTBotUtils.selectNode( bot, browserTree, "DIT", "Root DSE", "ou=system" );
        systemNode.expand();
        systemNode.expand();
View Full Code Here

        assertEquals( ReferralHandlingMethod.MANAGE.ordinal(), referralsHandlingMethodOrdinal );

        // create the referral entry
        createReferralEntry();

        final SWTBotTree browserTree = SWTBotUtils.getLdapBrowserTree( bot );

        // expand ou=system, that reads the referral and opens the referral dialog
        final SWTBotTreeItem systemNode = SWTBotUtils.selectNode( bot, browserTree, "DIT", "Root DSE", "ou=system" );
        systemNode.expand();
        systemNode.expand();
View Full Code Here

     *
     * @throws Exception the exception
     */
    public void testRenameMultiValuedRdn() throws Exception
    {
        final SWTBotTree browserTree = SWTBotUtils.getLdapBrowserTree( bot );

        SWTBotUtils.selectNode( bot, browserTree, "DIT", "Root DSE", "ou=system", "ou=users",
            "cn=Barbara Jensen+uid=bjensen" );

        SWTBotMenu contextMenu = browserTree.contextMenu( "Rename Entry..." );
        contextMenu.click();

        bot.text( "Barbara Jensen" ).setText( "Babs Jensen" );
        bot.text( "bjensen" ).setText( "babsjens" );
        bot.button( "OK" ).click();
View Full Code Here

     *
     * @throws Exception the exception
     */
    public void testSwtResourcesDelta() throws Exception
    {
        SWTBotTree browserTree = SWTBotUtils.getLdapBrowserTree( bot );

        // run the new entry wizard once to ensure all SWT resources are created
        createAndDeleteEntry( browserTree, "testSwtResourcesDelta" + 0 );

        // remember the SWT objects before the run
View Full Code Here

        viewMenu.click();
        SWTBotMenu otherMenu = viewMenu.menu( "Other..." );
        otherMenu.click();

        // select "Sleak"
        SWTBotTree tree = eBot.tree();
        SWTBotUtils.selectNode( eBot, tree, "SWT Tools", "Sleak" );

        // press "OK"
        SWTBotButton okButton = eBot.button( "OK" );
        okButton.click();
View Full Code Here

     *
     * @throws Exception the exception
     */
    public static Connection createTestConnection( SWTEclipseBot bot, String name, int port ) throws Exception
    {
        SWTBotTree connectionsTree = getConnectionsTree( bot );

        ConnectionManager connectionManager = ConnectionCorePlugin.getDefault().getConnectionManager();
        ConnectionParameter connectionParameter = new ConnectionParameter();
        connectionParameter.setName( name );
        connectionParameter.setHost( "localhost" );
        connectionParameter.setPort( port );
        connectionParameter.setEncryptionMethod( EncryptionMethod.NONE );
        connectionParameter.setAuthMethod( AuthenticationMethod.SIMPLE );
        connectionParameter.setBindPrincipal( "uid=admin,ou=system" );
        connectionParameter.setBindPassword( "secret" );
        Connection connection = new Connection( connectionParameter );
        connectionManager.addConnection( connection );

        ConnectionFolderManager connectionFolderManager = ConnectionCorePlugin.getDefault()
            .getConnectionFolderManager();
        ConnectionFolder rootConnectionFolder = connectionFolderManager.getRootConnectionFolder();
        rootConnectionFolder.addConnectionId( connection.getId() );

        connectionsTree.select( name );
        //new OpenConnectionsJob( connection ).execute();

        Thread.sleep( 1000 );
        return connection;
    }
View Full Code Here

    public static SWTBotTree getConnectionsTree( SWTEclipseBot bot ) throws Exception
    {
        SWTBotView view = bot.view( "Connections" );
        view.show();
        SWTBotTree connectionsTree = bot.tree( 0 );
        return connectionsTree;
    }
View Full Code Here

    public static SWTBotTree getLdapBrowserTree( SWTEclipseBot bot ) throws Exception
    {
        SWTBotView view = bot.view( "LDAP Browser" );
        view.show();
        SWTBotTree browserTree = bot.tree( 1 );
        return browserTree;
    }
View Full Code Here

TOP

Related Classes of net.sf.swtbot.widgets.SWTBotTree

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.