@Test public void testToString() throws Exception { assertEquals(String.format("Circuit(id=%s, name=%s, country=%s, length=%d)", id, name, country, length), circuit.toString()); }
@Override public String toString() { return String.format("Circuit(id=%s, name=%s, country=%s, length=%d)", id, name, country, length); }
Circuit { @Override public String toString() { return String.format("Circuit(id=%s, name=%s, country=%s, length=%d)", id, name, country, length); } }
Circuit { @Override public String toString() { return String.format("Circuit(id=%s, name=%s, country=%s, length=%d)", id, name, country, length); } Circuit(UUID id, String name, String country, int length); }
Circuit { @Override public String toString() { return String.format("Circuit(id=%s, name=%s, country=%s, length=%d)", id, name, country, length); } Circuit(UUID id, String name, String country, int length); int getLength(); UUID getId(); String getName(); String getCountry(); boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
Circuit { @Override public String toString() { return String.format("Circuit(id=%s, name=%s, country=%s, length=%d)", id, name, country, length); } Circuit(UUID id, String name, String country, int length); int getLength(); UUID getId(); String getName(); String getCountry(); boolean equals(Object other); @Override int hashCode(); @Override String toString();  }