@Test public void testGetName() throws Exception { Cluster cluster = new Cluster("Cluster1", "Colo", Collections.singleton(new Cluster.Interface("type", "endpoint", "version")), Collections.singleton(new Cluster.Location("name", "path")), Collections.singletonMap("P1", "V1")); Assert.assertEquals("Cluster1", cluster.getName()); }
public String getName() { return name; }
Cluster { public String getName() { return name; } }
Cluster { public String getName() { return name; } Cluster(String name, String colo, Set<Interface> interfaces, Set<Location> locations, Map<String, String> properties); }
Cluster { public String getName() { return name; } 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 String getName() { return name; } 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();  }