Package org.jclouds.rds.domain

Examples of org.jclouds.rds.domain.SubnetGroup


public class GetSubnetGroupResponseTest extends BaseHandlerTest {

   public void test() {
      InputStream is = getClass().getResourceAsStream("/get_subnetgroup.xml");

      SubnetGroup expected = expected();

      SubnetGroupHandler handler = injector.getInstance(SubnetGroupHandler.class);
      SubnetGroup result = factory.create(handler).parse(is);

      assertEquals(result.toString(), expected.toString());
  }
View Full Code Here


      for (SubnetGroup subnetGroup : response) {
         checkSubnetGroup(subnetGroup);
      }

      if (Iterables.size(response) > 0) {
         SubnetGroup subnetGroup = response.iterator().next();
         Assert.assertEquals(api().get(subnetGroup.getName()), subnetGroup);
      }

      // Test with a Marker, even if it's null
      response = api().list(ListSubnetGroupsOptions.Builder.afterMarker(response.nextMarker().orNull()));
      for (SubnetGroup subnetGroup : response) {
View Full Code Here

      for (SubnetGroup subnetGroup : response) {
         checkSubnetGroup(subnetGroup);
      }

      if (Iterables.size(response) > 0) {
         SubnetGroup subnetGroup = response.iterator().next();
         Assert.assertEquals(api().get(subnetGroup.getName()), subnetGroup);
      }

      // Test with a Marker, even if it's null
      response = api().list(ListSubnetGroupsOptions.Builder.afterMarker(response.nextMarker().orNull()));
      for (SubnetGroup subnetGroup : response) {
View Full Code Here

public class GetSubnetGroupResponseTest extends BaseHandlerTest {

   public void test() {
      InputStream is = getClass().getResourceAsStream("/get_subnetgroup.xml");

      SubnetGroup expected = expected();

      SubnetGroupHandler handler = injector.getInstance(SubnetGroupHandler.class);
      SubnetGroup result = factory.create(handler).parse(is);

      assertEquals(result.toString(), expected.toString());
  }
View Full Code Here

TOP

Related Classes of org.jclouds.rds.domain.SubnetGroup

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.