Examples of waitUntilReady()


Examples of com.mysql.clusterj.core.store.ClusterConnection.waitUntilReady()

            ClusterConnectionService service, Map<?, ?> props, int nodeId) {
        ClusterConnection result = null;
        try {
            result = service.create(CLUSTER_CONNECT_STRING, nodeId);
            result.connect(CLUSTER_CONNECT_RETRIES, CLUSTER_CONNECT_DELAY,true);
            result.waitUntilReady(CLUSTER_CONNECT_TIMEOUT_BEFORE,CLUSTER_CONNECT_TIMEOUT_AFTER);
        } catch (Exception ex) {
            // need to clean up if some connections succeeded
            for (ClusterConnection connection: pooledConnections) {
                connection.close();
            }
View Full Code Here

Examples of edu.umd.cs.findbugs.gui2.MainFrame.waitUntilReady()

        GUISaveState.loadInstance();
        try {
            FindBugsLayoutManagerFactory factory = new FindBugsLayoutManagerFactory(SplitLayout.class.getName());
            MainFrame.makeInstance(factory);
            MainFrame instance = MainFrame.getInstance();
            instance.waitUntilReady();
            instance.openBugCollection(bugs);
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of org.eclipse.dltk.core.search.indexing.IndexManager.waitUntilReady()

  @SuppressWarnings("restriction")
  protected static void enableDLTKIndexer(boolean waitUntilReady) {
    IndexManager indexManager = org.eclipse.dltk.internal.core.ModelManager.getModelManager().getIndexManager();
    indexManager.enable();
    if(waitUntilReady) {
      indexManager.waitUntilReady();
    }
  }
 
  /* ----------------- ----------------- */
 
 
View Full Code Here

Examples of org.eclipse.dltk.core.search.indexing.IndexManager.waitUntilReady()

    Index idx = im.getIndex(prj.getFullPath(), true, true); // This is index file for project root
   
    assertNotNull(im.indexLocations.keyTable);
    System.out.println("===== Index Locations ====\n" + im.indexLocations + "\n");
   
    im.waitUntilReady();
   
    // And then check using
    String[] docNames = idx.queryDocumentNames(null); // To check all documents in this index
    assertNotNull(docNames);
    System.out.println("===== Index docs ====\n" + StringUtil.collToString(docNames, "\n") );
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.waitUntilReady()

        // Logout. Guests shouldn't be able to edit nor delete the application.
        homePage.logout();
        getUtil().recacheSecretToken();
        homePage = new AppWithinMinutesHomePage();
        appsLiveTable = homePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        appsLiveTable.filterApplicationName(appName);
        Assert.assertFalse(appsLiveTable.canEditApplication(appName));
        Assert.assertFalse(appsLiveTable.canDeleteApplication(appName));

        // Login with a different user. The new user shouldn't be able to delete the application.
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.waitUntilReady()

        Assert.assertFalse(appsLiveTable.canDeleteApplication(appName));

        // Login with a different user. The new user shouldn't be able to delete the application.
        getUtil().createUserAndLogin("someOtherUser", "somePassword");
        appsLiveTable = AppWithinMinutesHomePage.gotoPage().getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        appsLiveTable.filterApplicationName(appName);
        Assert.assertTrue(appsLiveTable.canEditApplication(appName));
        Assert.assertFalse(appsLiveTable.canDeleteApplication(appName));
    }
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.waitUntilReady()

        homeEditPage.clickBreadcrumbLink(AppWithinMinutesHomePage.TITLE);
        AppWithinMinutesHomePage appWithinMinutesHomePage = new AppWithinMinutesHomePage();

        // Assert that the created application is listed in the live table.
        ApplicationsLiveTableElement appsLiveTable = appWithinMinutesHomePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        Assert.assertTrue(appsLiveTable.isApplicationListed(appPrettyName));
    }
}
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.waitUntilReady()

        homePage.clickBreadcrumbLink(AppWithinMinutesHomePage.TITLE);
        AppWithinMinutesHomePage appWithinMinutesHomePage = new AppWithinMinutesHomePage();

        // Assert that the created application is listed in the live table.
        ApplicationsLiveTableElement appsLiveTable = appWithinMinutesHomePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        Assert.assertTrue(appsLiveTable.isApplicationListed(appName));
    }

    /**
     * @see XWIKI-7380: Cannot go back from step 2 to step 1
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.waitUntilReady()

        String appName = RandomStringUtils.randomAlphabetic(6);
        createApplication(appName);

        // Check the the applications live table lists the created application.
        ApplicationsLiveTableElement appsLiveTable = homePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        Assert.assertTrue(appsLiveTable.hasColumn("Actions"));
        appsLiveTable.filterApplicationName(appName.substring(0, 3));
        Assert.assertTrue(appsLiveTable.isApplicationListed(appName));

        // Click the delete icon then cancel the confirmation.
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.ApplicationsLiveTableElement.waitUntilReady()

        // Click the delete icon then cancel the confirmation.
        appsLiveTable.clickDeleteApplication(appName).clickNo();
        // We should be taken back to the AppWithinMinutes home page.
        homePage = new AppWithinMinutesHomePage();
        appsLiveTable = homePage.getAppsLiveTable();
        appsLiveTable.waitUntilReady();
        // The application name filter should've been preserved.
        Assert.assertEquals(appName.substring(0, 3), appsLiveTable.getApplicationNameFilter());

        // Click the delete icon again and this confirm the action.
        appsLiveTable.clickDeleteApplication(appName).clickYes();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.