Package com.openshift.client

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


    // a refresh()
    mockDirector.mockGetApplicationCartridges("foobarz", "springeap6",
        GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED);

    // operation
    app.refresh();

    // verify
    // get app resource wont load embedded cartridges, only refresh does
    // (thus should occur 1x)
    mockDirector.verifyListEmbeddableCartridges(1, "foobarz", "springeap6");
View Full Code Here


        .mockGetEnvironmentVariables("foobarz", "springeap6",
            GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6, GET_2_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6);
    final IApplication app = domain.getApplicationByName("springeap6");
    assertThat(app.getEnvironmentVariables()).hasSize(1);
    // operation
    app.refresh();
    // verification
    assertThat(app.getEnvironmentVariables()).hasSize(2);
  }
 
  @Test
View Full Code Here

    // precondition
    mockDirector
        .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOENVVARS);
    IApplication application = domain.getApplicationByName("springeap6");
    // operation
    application.refresh();
    // verifications
  }
 
  @Test
  public void shouldEqualApplication() throws Throwable {
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.