Examples of CloudFoundryApplicationModule


Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.CloudFoundryApplicationModule

   * @return
   * @throws Exception
   */
  protected CloudFoundryApplicationModule assertCloudFoundryModuleExists(IModule module, String appPrefix)
      throws Exception {
    CloudFoundryApplicationModule appModule = cloudServer.getExistingCloudModule(module);

    assertNotNull("Expected non-null Cloud Foundry application module", appModule);

    // The deployed application name in the Cloud module MUST match the
    // expected application name
    assertEquals(harness.getDefaultWebAppName(appPrefix), appModule.getDeployedApplicationName());

    return appModule;
  }
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.CloudFoundryApplicationModule

   * @param appPrefix
   * @return deployed app.
   * @throws Exception
   */
  protected CloudFoundryApplicationModule assertDeployApplicationStartMode(String appPrefix) throws Exception {
    CloudFoundryApplicationModule appModule = deployApplication(appPrefix, false);
    assertApplicationIsRunning(appModule.getLocalModule(), appPrefix);
    return appModule;
  }
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.CloudFoundryApplicationModule

    serverBehavior.publish(IServer.PUBLISH_INCREMENTAL, new NullProgressMonitor());

    int expectedAppState = deployStopped ? IServer.STATE_STOPPED : IServer.STATE_STARTED;

    CloudFoundryApplicationModule appModule = assertApplicationIsDeployed(appPrefix, expectedAppState);

    // Do a separate check to verify that there is in fact a
    // CloudApplication for the
    // given app (i.e. verify that is is indeed deployed, even though this
    // has been checked
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.CloudFoundryApplicationModule

      launchInModeType(modules);

      int moduleState = server.getModuleState(modules);
      assertEquals(IServer.STATE_STARTED, moduleState);

      CloudFoundryApplicationModule appModule = cloudServer.getExistingCloudModule(modules[0]);
      List<String> uris = appModule.getApplication().getUris();
      assertEquals(Collections.singletonList(harness.getExpectedDefaultURL(appPrefix)), uris);

      // wait 1s until app is actually started
      // FIXNS: for now skip testing content for debug launches
      // URI uri = new URI("http://" + harness.getUrl("dynamic-webapp") +
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.CloudFoundryApplicationModule

  public void testServiceBinding() throws Exception {
    CloudService service = createService();
    String prefix = "testServiceBinding";
    createWebApplicationProject();
    CloudFoundryApplicationModule appModule = assertDeployApplicationStartMode(prefix);

    CloudApplication app = appModule.getApplication();
    assertStopModule(appModule);

    bindServiceToApp(app, service);

    assertStartModule(appModule);
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.CloudFoundryApplicationModule

    CloudService service = createService();

    String prefix = "testServiceUnbinding";
    createWebApplicationProject();

    CloudFoundryApplicationModule appModule = assertDeployApplicationStartMode(prefix);

    CloudApplication app = appModule.getApplication();

    assertStopModule(appModule);
    bindServiceToApp(app, service);

    assertStartModule(appModule);
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.CloudFoundryApplicationModule

   */
  public void testNonCaldecottServiceUnbinding_STS_2767() throws Exception {
    String prefix = "nonCaldecottServiceUnbinding";
    createWebApplicationProject();

    CloudFoundryApplicationModule appModule = assertDeployApplicationStartMode(prefix);

    CloudApplication nonCaldecottApp = appModule.getApplication();

    CloudService service = getMysqlService();
    assertServiceExists(MYSQL_SERVICE_NAME);

    assertStopModule(appModule);
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.CloudFoundryApplicationModule

    // Verify that connection and operations can be performed without the
    // proxy change
    String prefix = "InvalidProxyServerInstance";
    createWebApplicationProject();

    CloudFoundryApplicationModule appModule = assertDeployApplicationStartMode(prefix);
    final String appName = appModule.getDeployedApplicationName();

    final boolean[] ran = { false };

    new ProxyHandler("invalid.proxy.test", 8080) {
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.