@Test public void testToString() { String uri = "fake: Snitch fakeSnitch = StaticSnitch.of(URI.create(uri)); SnitchRegistry registry = StaticSnitchRegistry.of(fakeSnitch); Assert.assertTrue(registry.toString().contains(uri)); }
public static SnitchRegistry of(Snitch... snitches) { return new StaticSnitchRegistry(snitches); }
StaticSnitchRegistry implements SnitchRegistry { public static SnitchRegistry of(Snitch... snitches) { return new StaticSnitchRegistry(snitches); } }
StaticSnitchRegistry implements SnitchRegistry { public static SnitchRegistry of(Snitch... snitches) { return new StaticSnitchRegistry(snitches); } StaticSnitchRegistry(Snitch... snitches);  StaticSnitchRegistry(Collection<Snitch> snitches); }
StaticSnitchRegistry implements SnitchRegistry { public static SnitchRegistry of(Snitch... snitches) { return new StaticSnitchRegistry(snitches); } StaticSnitchRegistry(Snitch... snitches);  StaticSnitchRegistry(Collection<Snitch> snitches); static SnitchRegistry of(Snitch... snitches); static SnitchRegistry of(Collection<Snitch> snitches); static List<Snitch> filterDuplicateLocations(Collection<Snitch> snitches); @Override List<Snitch> getAll(); }
StaticSnitchRegistry implements SnitchRegistry { public static SnitchRegistry of(Snitch... snitches) { return new StaticSnitchRegistry(snitches); } StaticSnitchRegistry(Snitch... snitches);  StaticSnitchRegistry(Collection<Snitch> snitches); static SnitchRegistry of(Snitch... snitches); static SnitchRegistry of(Collection<Snitch> snitches); static List<Snitch> filterDuplicateLocations(Collection<Snitch> snitches); @Override List<Snitch> getAll();  }