Examples of SharedIpGroup


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
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.