vehicles-api/src/test/java/com/udacity/vehicles/api/CarControllerTest.java
@Test
  public void deleteCar() throws Exception {
    mvc.perform(delete("/cars/{id}", 1)
            .accept(MediaType.APPLICATION_JSON))
            .andExpect(status().isNoContent());
  }
/**
   * Tests the deletion of a single car by ID.
   *
   * @throws Exception if the delete operation of a vehicle fails
   */
Tests the deletion of a single car by ID.
@throws Exception if the delete operation of a vehicle fails
Tests the deletion of a single car by ID . @throws Exception if the delete operation of a vehicle fails
@Test
  public void deleteCar() throws Exception {
    mvc.perform(delete("/cars/{id}", 1)
            .accept(MediaType.APPLICATION_JSON))
            .andExpect(status().isNoContent());
  }
@ Test public void deleteCar ( ) throws Exception { mvc . perform ( delete ( "/cars/{id}" , 1 ) . accept ( MediaType . APPLICATION_JSON ) ) . andExpect ( status ( ) . isNoContent ( ) ) ; }
Tests the deletion of a single car by ID.
Tests the deletion of a single car by ID .