@Test public void getSeeds() { expect(service.getSeeds(ring)).andReturn(ImmutableSet.of("host1", "host2", "host3")); replayAll(); assertEquals("host1,host2,host3", resource.getSeeds()); }
@GET public String getSeeds() { return SEED_JOINER.join(service.getSeeds(ring)); }
SeedResource { @GET public String getSeeds() { return SEED_JOINER.join(service.getSeeds(ring)); } }
SeedResource { @GET public String getSeeds() { return SEED_JOINER.join(service.getSeeds(ring)); } @Inject  SeedResource(SeedService service, @Assisted CassandraRing ring); }
SeedResource { @GET public String getSeeds() { return SEED_JOINER.join(service.getSeeds(ring)); } @Inject  SeedResource(SeedService service, @Assisted CassandraRing ring); @GET String getSeeds(); }
SeedResource { @GET public String getSeeds() { return SEED_JOINER.join(service.getSeeds(ring)); } @Inject  SeedResource(SeedService service, @Assisted CassandraRing ring); @GET String getSeeds();  }