Code example for FluentIterable

Methods: toString

0
        FluentIterable<Subnet> expected = expected();
         
        DescribeSubnetsResponseHandler handler = injector.getInstance(DescribeSubnetsResponseHandler.class);
        FluentIterable<Subnet> result = factory.create(handler).parse(is);
         
        assertEquals(result.toString(), expected.toString());
         
    } 
    public FluentIterable<Subnet> expected() {
        return FluentIterable.from(ImmutableSet.<Subnet>builder()
                                   .add(Subnet.builder() 
                                        .subnetId("subnet-9d4a7b6c") 
                                        .subnetState(Subnet.State.AVAILABLE) 
                                        .vpcId("vpc-1a2b3c4d") 
                                        .cidrBlock("10.0.1.0/24") 
                                        .availableIpAddressCount(250) 
                                        .availabilityZone("us-east-1a") 
                                        .tag("Name", "ec2-o") 
                                        .tag("Empty", "") 
                                        .build())