Skip to content

Commit

Permalink
Fix fuel type for Audi and Mercedes-Benz (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
fazlearefin authored Mar 20, 2024
1 parent 089a236 commit daef452
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void createModels() {
vehicleCompany = new VehicleCompany("Mercedes-Benz");
vehicleModel =
new VehicleModel(
"GLA Class", EFuelType.DIESEL, vehicleCompany, "images/mercedesbenz-gla.jpg");
"GLA Class", EFuelType.PETROL, vehicleCompany, "images/mercedesbenz-gla.jpg");
vehicleModelRepository.save(vehicleModel);

vehicleCompany = new VehicleCompany("BMW");
Expand All @@ -94,7 +94,7 @@ public void createModels() {
vehicleModelRepository.save(vehicleModel);

vehicleCompany = new VehicleCompany("Audi");
vehicleModel = new VehicleModel("RS7", EFuelType.DIESEL, vehicleCompany, "images/audi-rs7.jpg");
vehicleModel = new VehicleModel("RS7", EFuelType.PETROL, vehicleCompany, "images/audi-rs7.jpg");
vehicleModelRepository.save(vehicleModel);

vehicleCompany = new VehicleCompany("MG Motor");
Expand Down

0 comments on commit daef452

Please sign in to comment.