Code example for FluentIterable

Methods: toSet

0
      FluentIterable<Task> expected = expected();
 
      TaskListHandler handler = injector.getInstance(TaskListHandler.class);
      FluentIterable<Task> result = factory.create(handler).parse(is);
 
      assertEquals(result.toSet().toString(), expected.toSet().toString());
   } 
 
   public FluentIterable<Task> expected() {
      return FluentIterable.from(ImmutableSet.<Task> builder()
                           .add(Task.builder() 
                                    .guid("0b40c7dd-748d-4c49-8506-26f0c7d2ea9c") 
                                    .statusCode(StatusCode.COMPLETE) 
                                    .message("Processing complete") 
                                    .resultUrl(URI.create("http://localhost:8008/users/node01/tasks/0b40c7dd-748d-4c49-8506-26f0c7d2ea9c/result"))
                                    .build()) 
                           .build()); 
   } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java