From cd51392c43d558136fad00704a15fe58ebefbf66 Mon Sep 17 00:00:00 2001 From: manjunathmr6 Date: Sun, 10 May 2020 10:56:48 +0530 Subject: [PATCH] Added test case for update functionality Test case update functionality was missing --- .../udacity/vehicles/api/CarControllerTest.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/projects/P02-VehiclesAPI/vehicles-api/src/test/java/com/udacity/vehicles/api/CarControllerTest.java b/projects/P02-VehiclesAPI/vehicles-api/src/test/java/com/udacity/vehicles/api/CarControllerTest.java index 7f84e4be..2fb1293b 100755 --- a/projects/P02-VehiclesAPI/vehicles-api/src/test/java/com/udacity/vehicles/api/CarControllerTest.java +++ b/projects/P02-VehiclesAPI/vehicles-api/src/test/java/com/udacity/vehicles/api/CarControllerTest.java @@ -110,6 +110,18 @@ public void findCar() throws Exception { * a vehicle by ID. This should utilize the car from `getCar()` below. */ } + + /** + * Tests the update operation of the car by. + * @throws Exception when car update fails in the system + */ + @Test + public void updateCar() throws Exception { + /** + * TODO: Add a test to check whether a vehicle is appropriately update or not. + * This should utilize the car from `getCar()` below. + */ + } /** * Tests the deletion of a single car by ID. @@ -147,4 +159,4 @@ private Car getCar() { car.setCondition(Condition.USED); return car; } -} \ No newline at end of file +}