Package org.jclouds.cloudservers.domain

Examples of org.jclouds.cloudservers.domain.SharedIpGroup


      InputStream is = getClass().getResourceAsStream("/test_get_sharedipgroup_details.json");

      UnwrapOnlyJsonValue<SharedIpGroup> parser = i.getInstance(Key
            .get(new TypeLiteral<UnwrapOnlyJsonValue<SharedIpGroup>>() {
            }));
      SharedIpGroup response = parser.apply(HttpResponse.builder().statusCode(200).message("ok").payload(is).build());

      assertEquals(response.getId(), 1234);
      assertEquals(response.getName(), "Shared IP Group 1");
      assertEquals(response.getServers(), ImmutableList.of(422));
   }
View Full Code Here

TOP

Related Classes of org.jclouds.cloudservers.domain.SharedIpGroup

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.