@Test public void getMaxDistance() { assertEquals(engine.getPower() * tire.getResistanceFactor(), engine.getMaxDistance(tire), delta); }
public double getMaxDistance(Tire tire) { return power * tire.getResistanceFactor() ; }
Engine extends InventoryItem { public double getMaxDistance(Tire tire) { return power * tire.getResistanceFactor() ; } }
Engine extends InventoryItem { public double getMaxDistance(Tire tire) { return power * tire.getResistanceFactor() ; } Engine(UUID id, String brand, String name, double power, double driveability,
                  double fuelConsumption); protected  Engine(); }
Engine extends InventoryItem { public double getMaxDistance(Tire tire) { return power * tire.getResistanceFactor() ; } 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 { public double getMaxDistance(Tire tire) { return power * tire.getResistanceFactor() ; } 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();  }