@Test public void testGetInterfaces() throws Exception { Cluster.Interface interface1 = new Cluster.Interface("type", "endpoint", "version"); Cluster cluster = new Cluster("Cluster1", "Colo", Collections.singleton(interface1), Collections.singleton(new Cluster.Location("name", "path")), Collections.singletonMap("P1", "V1")); Assert.assertEquals(Collections.singleton(interface1), cluster.getInterfaces()); }
public Set<Interface> getInterfaces() { return interfaces; }
Cluster { public Set<Interface> getInterfaces() { return interfaces; } }
Cluster { public Set<Interface> getInterfaces() { return interfaces; } Cluster(String name, String colo, Set<Interface> interfaces, Set<Location> locations, Map<String, String> properties); }
Cluster { public Set<Interface> getInterfaces() { return interfaces; } Cluster(String name, String colo, Set<Interface> interfaces, Set<Location> locations, Map<String, String> properties); String getName(); String getColo(); Set<Interface> getInterfaces(); Set<Location> getLocations(); Map<String, String> getProperties(); @Override boolean equals(Object o); @Override int hashCode(); }
Cluster { public Set<Interface> getInterfaces() { return interfaces; } Cluster(String name, String colo, Set<Interface> interfaces, Set<Location> locations, Map<String, String> properties); String getName(); String getColo(); Set<Interface> getInterfaces(); Set<Location> getLocations(); Map<String, String> getProperties(); @Override boolean equals(Object o); @Override int hashCode();  }