Code example for FluentIterable

Methods: toSet

0
      FluentIterable<Zone> expected = expected();
 
      ZoneListHandler handler = injector.getInstance(ZoneListHandler.class);
      FluentIterable<Zone> result = factory.create(handler).parse(is);
 
      assertEquals(result.toSet().toString(), expected.toSet().toString());
   } 
 
   public FluentIterable<Zone> expected() {
      return FluentIterable.from(ImmutableSet.<Zone> builder()
                           .add(Zone.builder() 
                                    .name("jclouds.org.") 
                                    .typeCode(1) 
                                    .accountId("AAAAAAAAAAAAAAAA") 
                                    .ownerId("EEEEEEEEEEEEEEEE") 
                                    .id("0000000000000001") 
                                    .dnssecStatus(DNSSECStatus.UNSIGNED).build()) 
                           .add(Zone.builder() 
                                    .name("0.1.2.3.4.5.6.7.ip6.arpa.") 
                                    .typeCode(1) 
Connect your IDE to all the code out there  Get Codota for Java