@Test public void testToString() { assertEquals(String.format("Engine(id=%s, brand=%s, name=%s)", id, brand, name), engine.toString()); }
@Override public String toString() { return String.format("Engine(id=%s, brand=%s, name=%s)", getId(), brand, name); }
Engine extends InventoryItem { @Override public String toString() { return String.format("Engine(id=%s, brand=%s, name=%s)", getId(), brand, name); } }
Engine extends InventoryItem { @Override public String toString() { return String.format("Engine(id=%s, brand=%s, name=%s)", getId(), brand, name); } Engine(UUID id, String brand, String name, double power, double driveability,
                  double fuelConsumption); protected  Engine(); }
Engine extends InventoryItem { @Override public String toString() { return String.format("Engine(id=%s, brand=%s, name=%s)", getId(), brand, name); } Engine(UUID id, String brand, String name, double power, double driveability,
                  double fuelConsumption); protected  Engine(); String getBrand(); String getName(); double getPower(); double getDriveability(); double getFuelConsumption(); double getMaxDistance(Tire tire); @Override String toString(); }
Engine extends InventoryItem { @Override public String toString() { return String.format("Engine(id=%s, brand=%s, name=%s)", getId(), brand, name); } Engine(UUID id, String brand, String name, double power, double driveability,
                  double fuelConsumption); protected  Engine(); String getBrand(); String getName(); double getPower(); double getDriveability(); double getFuelConsumption(); double getMaxDistance(Tire tire); @Override String toString();  }