@Test public void testToString() { assertNotNull(new Announcement("environment", "node", "pool", "location", ImmutableSet.of( serviceAnnouncement("foo") .addProperty("http", "http: .addProperty("jmx", "jmx: .build()) )); }
@Override public String toString() { return toStringHelper(this) .add("environment", environment) .add("nodeId", nodeId) .add("location", location) .add("pool", pool) .add("services", services) .toString(); }
Announcement { @Override public String toString() { return toStringHelper(this) .add("environment", environment) .add("nodeId", nodeId) .add("location", location) .add("pool", pool) .add("services", services) .toString(); } }
Announcement { @Override public String toString() { return toStringHelper(this) .add("environment", environment) .add("nodeId", nodeId) .add("location", location) .add("pool", pool) .add("services", services) .toString(); } Announcement(String environment, String nodeId, String pool, String location, Set<ServiceAnnouncement> services); }
Announcement { @Override public String toString() { return toStringHelper(this) .add("environment", environment) .add("nodeId", nodeId) .add("location", location) .add("pool", pool) .add("services", services) .toString(); } Announcement(String environment, String nodeId, String pool, String location, Set<ServiceAnnouncement> services); @JsonProperty String getEnvironment(); @JsonProperty String getNodeId(); @JsonProperty String getLocation(); @JsonProperty String getPool(); @JsonProperty Set<ServiceAnnouncement> getServices(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Announcement { @Override public String toString() { return toStringHelper(this) .add("environment", environment) .add("nodeId", nodeId) .add("location", location) .add("pool", pool) .add("services", services) .toString(); } Announcement(String environment, String nodeId, String pool, String location, Set<ServiceAnnouncement> services); @JsonProperty String getEnvironment(); @JsonProperty String getNodeId(); @JsonProperty String getLocation(); @JsonProperty String getPool(); @JsonProperty Set<ServiceAnnouncement> getServices(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }