Examples of CloudApplication


Examples of org.cloudfoundry.client.lib.domain.CloudApplication

    servicesToBind.add(service.getName());
    serverBehavior.updateServices(application.getName(), servicesToBind, new NullProgressMonitor());
  }

  protected void unbindServiceToApp(CloudApplication application, CloudService service) throws Exception {
    CloudApplication updatedApplication = getUpdatedApplication(application.getName());
    List<String> boundServices = updatedApplication.getServices();
    List<String> servicesToUpdate = new ArrayList<String>();

    // Must iterate rather than passing to constructor or using
    // addAll, as some
    // of the entries in existing services may be null
View Full Code Here

Examples of org.cloudfoundry.client.lib.domain.CloudApplication

        new NullProgressMonitor());

  }

  protected void assertServiceBound(String serviceName, CloudApplication application) throws Exception {
    CloudApplication updatedApplication = getUpdatedApplication(application.getName());
    assertNotNull(updatedApplication);
    String foundService = findService(serviceName, updatedApplication);
    assertNotNull(foundService);
  }
View Full Code Here

Examples of org.cloudfoundry.client.lib.domain.CloudApplication

    String foundService = findService(serviceName, updatedApplication);
    assertNotNull(foundService);
  }

  protected void assertServiceNotBound(String serviceName, CloudApplication application) throws Exception {
    CloudApplication updatedApplication = getUpdatedApplication(application.getName());
    assertNotNull(updatedApplication);
    String foundService = findService(serviceName, updatedApplication);
    assertNull(foundService);
  }
View Full Code Here

Examples of org.cloudfoundry.client.lib.domain.CloudApplication

    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.client.lib.domain.CloudApplication

    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.client.lib.domain.CloudApplication

    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.client.lib.domain.CloudApplication

    CaldecottTunnelDescriptor descriptor = createCaldecottTunnel(MYSQL_SERVICE_NAME);
    assertNotNull(descriptor);
    assertTunnel(MYSQL_SERVICE_NAME);

    CloudApplication caldecottApp = getCaldecottApplication();
    assertNotNull(caldecottApp);

    assertRemoveApplication(caldecottApp);

    assertNoTunnel(MYSQL_SERVICE_NAME);
View Full Code Here

Examples of org.cloudfoundry.client.lib.domain.CloudApplication

    CaldecottTunnelDescriptor descriptor = createCaldecottTunnel(MYSQL_SERVICE_NAME);
    assertNotNull(descriptor);
    assertTunnel(MYSQL_SERVICE_NAME);

    CloudApplication caldecottApp = getCaldecottApplication();
    assertNotNull(caldecottApp);

    unbindServiceToApp(caldecottApp, service);
    assertServiceNotBound(service.getName(), caldecottApp);
View Full Code Here

Examples of org.cloudfoundry.client.lib.domain.CloudApplication

    CaldecottTunnelDescriptor descriptor = createCaldecottTunnel(MYSQL_SERVICE_NAME);
    assertNotNull(descriptor);
    assertTunnel(MYSQL_SERVICE_NAME);

    CloudApplication caldecottApp = getCaldecottApplication();
    assertNotNull(caldecottApp);

    assertRemoveApplication(caldecottApp);

    assertNoTunnel(MYSQL_SERVICE_NAME);
View Full Code Here

Examples of org.cloudfoundry.client.lib.domain.CloudApplication

        serverBehavior.stopModule(modules, null);

        int moduleState = server.getModuleState(modules);
        assertEquals(IServer.STATE_STOPPED, moduleState);
        CloudApplication cloudApplication = getUpdatedApplication(appName);
        assertEquals(cloudApplication.getState(), CloudApplication.AppState.STOPPED);
      }

    }.run();

    assertTrue(ran[0]);
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.