@Test public void delete() { final VehicleServiceImpl vehicleService = getVehicleService(); vehicleService.delete(VEHICLE_NAME); final Vehicle vehicle = vehicleService.get(VEHICLE_NAME); assertThat(vehicle, is(nullValue())); }
@After public void tearDown() throws Exception { final VehicleServiceImpl vehicleService = getVehicleService(); final Vehicle vehicle = vehicleService.get(VEHICLE_NAME); if (vehicle != null) { vehicleService.delete(VEHICLE_NAME); } }