test_class.declarator: vehicleArgumentCaptor
test_class.modifier: @Captor
      private
test_class.original_string: @Captor
      private ArgumentCaptor<Vehicle> vehicleArgumentCaptor;
test_class.type: ArgumentCaptor<Vehicle>
test_class.var_name: vehicleArgumentCaptor
test_class.declarator: optimizer
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private RouteOptimizer optimizer;
test_class.type: RouteOptimizer
test_class.var_name: optimizer
test_class.declarator: vehicleRepository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private VehicleRepository vehicleRepository;
test_class.type: VehicleRepository
test_class.var_name: vehicleRepository
test_class.declarator: vehicleService
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private VehicleService vehicleService;
test_class.type: VehicleService
test_class.var_name: vehicleService
test_class.file: optaweb-vehicle-routing-backend/src/test/java/org/optaweb/vehiclerouting/service/vehicle/VehicleServiceTest.java
test_class.identifier: VehicleServiceTest
test_case.body: @Test
      void removeVehicle() {
          final long vehicleId = 8;
          final Vehicle vehicle = VehicleFactory.testVehicle(vehicleId);
          when(vehicleRepository.removeVehicle(vehicleId)).thenReturn(vehicle);
  
          vehicleService.removeVehicle(vehicleId);
  
          verify(vehicleRepository).removeVehicle(vehicleId);
          verify(optimizer).removeVehicle(vehicle);
      }
test_case.class_method_signature: VehicleServiceTest.removeVehicle()
test_case.full_signature: @Test void removeVehicle()
test_case.identifier: removeVehicle
test_case.invocations: testVehicle thenReturn when removeVehicle removeVehicle removeVehicle verify removeVehicle verify
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void removeVehicle()
focal_class.declarator: DEFAULT_VEHICLE_CAPACITY = 10
focal_class.modifier: static final
focal_class.original_string: static final int DEFAULT_VEHICLE_CAPACITY = 10;
focal_class.type: int
focal_class.var_name: DEFAULT_VEHICLE_CAPACITY
focal_class.declarator: optimizer
focal_class.modifier: private final
focal_class.original_string: private final RouteOptimizer optimizer;
focal_class.type: RouteOptimizer
focal_class.var_name: optimizer
focal_class.declarator: vehicleRepository
focal_class.modifier: private final
focal_class.original_string: private final VehicleRepository vehicleRepository;
focal_class.type: VehicleRepository
focal_class.var_name: vehicleRepository
focal_class.file: optaweb-vehicle-routing-backend/src/main/java/org/optaweb/vehiclerouting/service/vehicle/VehicleService.java
focal_class.identifier: VehicleService
focal_class.class_method_signature: VehicleService.VehicleService(RouteOptimizer optimizer, VehicleRepository vehicleRepository)
focal_class.full_signature: @Autowired public  VehicleService(RouteOptimizer optimizer, VehicleRepository vehicleRepository)
focal_class.identifier: VehicleService
focal_class.modifiers: @Autowired public
focal_class.parameters: (RouteOptimizer optimizer, VehicleRepository vehicleRepository)
focal_class.signature:  VehicleService(RouteOptimizer optimizer, VehicleRepository vehicleRepository)
focal_class.class_method_signature: VehicleService.createVehicle()
focal_class.full_signature: public void createVehicle()
focal_class.identifier: createVehicle
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createVehicle()
focal_class.class_method_signature: VehicleService.createVehicle(VehicleData vehicleData)
focal_class.full_signature: public void createVehicle(VehicleData vehicleData)
focal_class.identifier: createVehicle
focal_class.modifiers: public
focal_class.parameters: (VehicleData vehicleData)
focal_class.return: void
focal_class.signature: void createVehicle(VehicleData vehicleData)
focal_class.class_method_signature: VehicleService.addVehicle(Vehicle vehicle)
focal_class.full_signature: public void addVehicle(Vehicle vehicle)
focal_class.identifier: addVehicle
focal_class.modifiers: public
focal_class.parameters: (Vehicle vehicle)
focal_class.return: void
focal_class.signature: void addVehicle(Vehicle vehicle)
focal_class.class_method_signature: VehicleService.removeVehicle(long vehicleId)
focal_class.full_signature: public void removeVehicle(long vehicleId)
focal_class.identifier: removeVehicle
focal_class.modifiers: public
focal_class.parameters: (long vehicleId)
focal_class.return: void
focal_class.signature: void removeVehicle(long vehicleId)
focal_class.class_method_signature: VehicleService.removeAnyVehicle()
focal_class.full_signature: public synchronized void removeAnyVehicle()
focal_class.identifier: removeAnyVehicle
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeAnyVehicle()
focal_class.class_method_signature: VehicleService.removeAll()
focal_class.full_signature: public void removeAll()
focal_class.identifier: removeAll
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeAll()
focal_class.class_method_signature: VehicleService.changeCapacity(long vehicleId, int capacity)
focal_class.full_signature: public void changeCapacity(long vehicleId, int capacity)
focal_class.identifier: changeCapacity
focal_class.modifiers: public
focal_class.parameters: (long vehicleId, int capacity)
focal_class.return: void
focal_class.signature: void changeCapacity(long vehicleId, int capacity)
focal_method.body: public void removeVehicle(long vehicleId) {
          Vehicle vehicle = vehicleRepository.removeVehicle(vehicleId);
          optimizer.removeVehicle(vehicle);
      }
focal_method.class_method_signature: VehicleService.removeVehicle(long vehicleId)
focal_method.full_signature: public void removeVehicle(long vehicleId)
focal_method.identifier: removeVehicle
focal_method.invocations: removeVehicle removeVehicle
focal_method.modifiers: public
focal_method.parameters: (long vehicleId)
focal_method.return: void
focal_method.signature: void removeVehicle(long vehicleId)