Examples of waitForAccessible()


Examples of com.openshift.client.IApplication.waitForAccessible()

    ApplicationTestUtils.destroyIfMoreThan(2, domain);
    long startTime = System.currentTimeMillis();
    IApplication application = domain.createApplication(ApplicationTestUtils.createRandomApplicationName(), LatestVersionOf.php().get(user));

    // operation
    boolean successfull = application.waitForAccessible(WAIT_TIMEOUT);

    if (successfull) {
      assertTrue(System.currentTimeMillis() <= startTime + WAIT_TIMEOUT);
    } else {
      assertTrue(System.currentTimeMillis() >= startTime + WAIT_TIMEOUT);
View Full Code Here

Examples of com.openshift.client.IApplication.waitForAccessible()

  public static IApplication createApplication(String name, IStandaloneCartridge cartridge, IDomain domain) {
    if (cartridge == null) {
      cartridge = getDefaultCartridge(domain);
    }
    IApplication application = domain.createApplication(name, cartridge);
    assertTrue(application.waitForAccessible(WAIT_FOR_APPLICATION));
    return application;
  }

  public static void silentlyDestroy(IApplication application) {
    try {
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.