ElonsToyCar.java says to implement static method but tests use instance method

This is more of an issue than a bug as the tests run fine. In ElonsToyCar.java the initial exception message says to implement a static method for the drive method but the tests show it being used as an instance method.


 public void drive() {
    throw new UnsupportedOperationException("Please implement the (static) RemoteControlCar.drive()  method");


    public void distance_display_after_driving_once() {
        ElonsToyCar car = new ElonsToyCar();
        assertThat(car.distanceDisplay()).isEqualTo("Driven 20 meters");


We’ll take a PR to update the stub!

I just submitted a PR!

1 Like