@Test public void testToString() throws Exception { assertEquals(String.format("GrandPrix(id=%s, circuit=%s, date=%s, laps=%d)", id, circuit, date, laps), grandPrix.toString()); }
@Override public String toString() { return String.format("GrandPrix(id=%s, circuit=%s, date=%s, laps=%d)", id, circuit, date, laps); }
GrandPrix { @Override public String toString() { return String.format("GrandPrix(id=%s, circuit=%s, date=%s, laps=%d)", id, circuit, date, laps); } }
GrandPrix { @Override public String toString() { return String.format("GrandPrix(id=%s, circuit=%s, date=%s, laps=%d)", id, circuit, date, laps); } GrandPrix(UUID id, Circuit circuit, Instant date, int laps, int rainChance); }
GrandPrix { @Override public String toString() { return String.format("GrandPrix(id=%s, circuit=%s, date=%s, laps=%d)", id, circuit, date, laps); } GrandPrix(UUID id, Circuit circuit, Instant date, int laps, int rainChance); int getRainChance(); boolean isItRaining(Random random); UUID getId(); Circuit getCircuit(); Instant getDate(); int getLaps(); boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
GrandPrix { @Override public String toString() { return String.format("GrandPrix(id=%s, circuit=%s, date=%s, laps=%d)", id, circuit, date, laps); } GrandPrix(UUID id, Circuit circuit, Instant date, int laps, int rainChance); int getRainChance(); boolean isItRaining(Random random); UUID getId(); Circuit getCircuit(); Instant getDate(); int getLaps(); boolean equals(Object other); @Override int hashCode(); @Override String toString();  }