Package org.cloudfoundry.client.lib

Examples of org.cloudfoundry.client.lib.CloudFoundryOperations.createApplication()


          // Do a direct client test with the proxy settings
          client = CloudFoundryPlugin.getCloudFoundryClientFactory().getCloudFoundryOperations(
              new CloudCredentials(serverBehavior.getCloudFoundryServer().getUsername(), serverBehavior
                  .getCloudFoundryServer().getPassword()),
              new URL(serverBehavior.getCloudFoundryServer().getUrl()), false);
          client.createApplication("test", new Staging(), 128, uris, new ArrayList<String>());
          fail("Expected ResourceAccessException due to invalid proxy configuration");
        }
        catch (Exception e) {
          assertTrue("Expected ResourceAccessException, got: " + e, e instanceof ResourceAccessException);
          assertEquals("invalid.proxy.test", e.getCause().getMessage());
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.