@Test public void testDistance() { assertEquals(distance, result.getDistanceTraveled(), 0.001); }
public double getDistanceTraveled() { return distanceTraveled; }
CarSimulationResult { public double getDistanceTraveled() { return distanceTraveled; } }
CarSimulationResult { public double getDistanceTraveled() { return distanceTraveled; } CarSimulationResult(CarConfiguration configuration, double distanceTraveled,
                               boolean crashed, boolean finished); }
CarSimulationResult { public double getDistanceTraveled() { return distanceTraveled; } CarSimulationResult(CarConfiguration configuration, double distanceTraveled,
                               boolean crashed, boolean finished); CarConfiguration getConfiguration(); double getDistanceTraveled(); boolean hasCrashed(); boolean hasFinished(); CarSimulationResult crash(); CarSimulationResult finish(); CarSimulationResult finishOn(double distance); CarSimulationResult increaseDistance(double delta); boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
CarSimulationResult { public double getDistanceTraveled() { return distanceTraveled; } CarSimulationResult(CarConfiguration configuration, double distanceTraveled,
                               boolean crashed, boolean finished); CarConfiguration getConfiguration(); double getDistanceTraveled(); boolean hasCrashed(); boolean hasFinished(); CarSimulationResult crash(); CarSimulationResult finish(); CarSimulationResult finishOn(double distance); CarSimulationResult increaseDistance(double delta); boolean equals(Object other); @Override int hashCode(); @Override String toString();  }