Package org.cloudfoundry.client.lib.domain

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


     */
    setVariableValueToObject( mojo, "artifactId", "cf-maven-tests" );
    setVariableValueToObject( mojo, "artifact", "someGAV");

    CloudFoundryClient client = mock(CloudFoundryClient.class);
    doReturn(new CloudDomain(null, "apps.cloudfoundry.com", null)).when(client).getDefaultDomain();
    doReturn(client).when(mojo).getClient();

    doReturn(null).when(mojo).getCommandlineProperty(any(SystemProperties.class));

    assertEquals("cf-maven-tests", mojo.getAppname());
View Full Code Here


    return mojo;
  }

  private void setupClient(Push mojo) {
    CloudFoundryClient client = mock(CloudFoundryClient.class);
    doReturn(new CloudDomain(null, "apps.cloudfoundry.com", null)).when(client).getDefaultDomain();
    doReturn(client).when(mojo).getClient();
  }
View Full Code Here

    return null; // for the compiler
  }

  private void clearTestDomainAndRoutes() {
    CloudDomain domain = getDomainNamed(TEST_DOMAIN, connectedClient.getDomains());
    if (domain != null) {
      List<CloudRoute> routes = connectedClient.getRoutes(domain.getName());
      for (CloudRoute route : routes) {
        connectedClient.deleteRoute(route.getHost(), route.getDomain().getName());
      }
      connectedClient.deleteDomain(domain.getName());
    }
  }
View Full Code Here

    if (ownerResource == null) {
      owner = new CloudOrganization(CloudEntity.Meta.defaultMeta(), "none");
    } else {
      owner = mapOrganizationResource(ownerResource);
    }
    return new CloudDomain(getMeta(resource), getNameOfResource(resource), owner);
  }
View Full Code Here

  private CloudRoute mapRouteResource(Map<String, Object> resource) {
    @SuppressWarnings("unchecked")
    List<Object> apps = getEntityAttribute(resource, "apps", List.class);
    String host = getEntityAttribute(resource, "host", String.class);
    CloudDomain domain = mapDomainResource(getEmbeddedResource(resource, "domain"));
    return new CloudRoute(getMeta(resource), host, domain, apps.size());
  }
View Full Code Here

TOP

Related Classes of org.cloudfoundry.client.lib.domain.CloudDomain

Copyright © 2018 www.massapicom. 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.