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: @Mock
      private
test_class.original_string: @Mock
      private VehicleService vehicleService;
test_class.type: VehicleService
test_class.var_name: vehicleService
test_class.declarator: locationRepository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private LocationRepository locationRepository;
test_class.type: LocationRepository
test_class.var_name: locationRepository
test_class.declarator: locationService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private LocationService locationService;
test_class.type: LocationService
test_class.var_name: locationService
test_class.declarator: reloadService
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private ReloadService reloadService;
test_class.type: ReloadService
test_class.var_name: reloadService
test_class.declarator: event
test_class.modifier: @Mock
test_class.original_string: @Mock
      ApplicationStartedEvent event;
test_class.type: ApplicationStartedEvent
test_class.var_name: event
test_class.declarator: vehicle = VehicleFactory.createVehicle(193, "Vehicle 193", 100)
test_class.modifier: private final
test_class.original_string: private final Vehicle vehicle = VehicleFactory.createVehicle(193, "Vehicle 193", 100);
test_class.type: Vehicle
test_class.var_name: vehicle
test_class.declarator: persistedVehicles = Arrays.asList(vehicle, vehicle)
test_class.modifier: private final
test_class.original_string: private final List<Vehicle> persistedVehicles = Arrays.asList(vehicle, vehicle);
test_class.type: List<Vehicle>
test_class.var_name: persistedVehicles
test_class.declarator: coordinates = Coordinates.valueOf(0.0, 1.0)
test_class.modifier: private final
test_class.original_string: private final Coordinates coordinates = Coordinates.valueOf(0.0, 1.0);
test_class.type: Coordinates
test_class.var_name: coordinates
test_class.declarator: location = new Location(1, coordinates)
test_class.modifier: private final
test_class.original_string: private final Location location = new Location(1, coordinates);
test_class.type: Location
test_class.var_name: location
test_class.declarator: persistedLocations = Arrays.asList(location, location, location)
test_class.modifier: private final
test_class.original_string: private final List<Location> persistedLocations = Arrays.asList(location, location, location);
test_class.type: List<Location>
test_class.var_name: persistedLocations
test_class.file: optaweb-vehicle-routing-backend/src/test/java/org/optaweb/vehiclerouting/service/reload/ReloadServiceTest.java
test_class.identifier: ReloadServiceTest
test_case.body: @Test
      void should_reload_on_startup() {
          when(vehicleRepository.vehicles()).thenReturn(persistedVehicles);
          when(locationRepository.locations()).thenReturn(persistedLocations);
  
          reloadService.reload(event);
  
          verify(vehicleRepository).vehicles();
          verify(vehicleService, times(persistedVehicles.size())).addVehicle(vehicle);
          verify(locationRepository).locations();
          verify(locationService, times(persistedLocations.size())).addLocation(location);
      }
test_case.class_method_signature: ReloadServiceTest.should_reload_on_startup()
test_case.full_signature: @Test void should_reload_on_startup()
test_case.identifier: should_reload_on_startup
test_case.invocations: thenReturn when vehicles thenReturn when locations reload vehicles verify addVehicle verify times size locations verify addLocation verify times size
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_reload_on_startup()
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.declarator: vehicleService
focal_class.modifier: private final
focal_class.original_string: private final VehicleService vehicleService;
focal_class.type: VehicleService
focal_class.var_name: vehicleService
focal_class.declarator: locationRepository
focal_class.modifier: private final
focal_class.original_string: private final LocationRepository locationRepository;
focal_class.type: LocationRepository
focal_class.var_name: locationRepository
focal_class.declarator: locationService
focal_class.modifier: private final
focal_class.original_string: private final LocationService locationService;
focal_class.type: LocationService
focal_class.var_name: locationService
focal_class.file: optaweb-vehicle-routing-backend/src/main/java/org/optaweb/vehiclerouting/service/reload/ReloadService.java
focal_class.identifier: ReloadService
focal_class.class_method_signature: ReloadService.ReloadService(
              VehicleRepository vehicleRepository,
              VehicleService vehicleService,
              LocationRepository locationRepository,
              LocationService locationService)
focal_class.full_signature: @Autowired  ReloadService(
              VehicleRepository vehicleRepository,
              VehicleService vehicleService,
              LocationRepository locationRepository,
              LocationService locationService)
focal_class.identifier: ReloadService
focal_class.modifiers: @Autowired
focal_class.parameters: (
              VehicleRepository vehicleRepository,
              VehicleService vehicleService,
              LocationRepository locationRepository,
              LocationService locationService)
focal_class.signature:  ReloadService(
              VehicleRepository vehicleRepository,
              VehicleService vehicleService,
              LocationRepository locationRepository,
              LocationService locationService)
focal_class.class_method_signature: ReloadService.reload(ApplicationStartedEvent event)
focal_class.full_signature: @EventListener public synchronized void reload(ApplicationStartedEvent event)
focal_class.identifier: reload
focal_class.modifiers: @EventListener public synchronized
focal_class.parameters: (ApplicationStartedEvent event)
focal_class.return: void
focal_class.signature: void reload(ApplicationStartedEvent event)
focal_method.body: @EventListener
      public synchronized void reload(ApplicationStartedEvent event) {
          vehicleRepository.vehicles().forEach(vehicleService::addVehicle);
          locationRepository.locations().forEach(locationService::addLocation);
      }
focal_method.class_method_signature: ReloadService.reload(ApplicationStartedEvent event)
focal_method.full_signature: @EventListener public synchronized void reload(ApplicationStartedEvent event)
focal_method.identifier: reload
focal_method.invocations: forEach vehicles forEach locations
focal_method.modifiers: @EventListener public synchronized
focal_method.parameters: (ApplicationStartedEvent event)
focal_method.return: void
focal_method.signature: void reload(ApplicationStartedEvent event)