test_class.declarator: repository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private LocationRepository repository;
test_class.type: LocationRepository
test_class.var_name: repository
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: distanceMatrix
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DistanceMatrix distanceMatrix;
test_class.type: DistanceMatrix
test_class.var_name: distanceMatrix
test_class.declarator: eventPublisher
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ApplicationEventPublisher eventPublisher;
test_class.type: ApplicationEventPublisher
test_class.var_name: eventPublisher
test_class.declarator: locationService
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private LocationService locationService;
test_class.type: LocationService
test_class.var_name: locationService
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.file: optaweb-vehicle-routing-backend/src/test/java/org/optaweb/vehiclerouting/service/location/LocationServiceTest.java
test_class.identifier: LocationServiceTest
test_case.body: @Test
      void addLocation(@Mock DistanceMatrixRow matrixRow) {
          when(distanceMatrix.addLocation(any())).thenReturn(matrixRow);
          assertThat(locationService.addLocation(location)).isTrue();
  
          verifyNoInteractions(repository);
          verify(distanceMatrix).addLocation(location);
          verify(optimizer).addLocation(location, matrixRow);
      }
test_case.class_method_signature: LocationServiceTest.addLocation(@Mock DistanceMatrixRow matrixRow)
test_case.full_signature: @Test void addLocation(@Mock DistanceMatrixRow matrixRow)
test_case.identifier: addLocation
test_case.invocations: thenReturn when addLocation any isTrue assertThat addLocation verifyNoInteractions addLocation verify addLocation verify
test_case.modifiers: @Test
test_case.parameters: (@Mock DistanceMatrixRow matrixRow)
test_case.return: void
test_case.signature: void addLocation(@Mock DistanceMatrixRow matrixRow)
focal_class.declarator: logger = LoggerFactory.getLogger(LocationService.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(LocationService.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: repository
focal_class.modifier: private final
focal_class.original_string: private final LocationRepository repository;
focal_class.type: LocationRepository
focal_class.var_name: repository
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: distanceMatrix
focal_class.modifier: private final
focal_class.original_string: private final DistanceMatrix distanceMatrix;
focal_class.type: DistanceMatrix
focal_class.var_name: distanceMatrix
focal_class.declarator: eventPublisher
focal_class.modifier: private final
focal_class.original_string: private final ApplicationEventPublisher eventPublisher;
focal_class.type: ApplicationEventPublisher
focal_class.var_name: eventPublisher
focal_class.file: optaweb-vehicle-routing-backend/src/main/java/org/optaweb/vehiclerouting/service/location/LocationService.java
focal_class.identifier: LocationService
focal_class.class_method_signature: LocationService.LocationService(
              LocationRepository repository,
              RouteOptimizer optimizer,
              DistanceMatrix distanceMatrix,
              ApplicationEventPublisher eventPublisher)
focal_class.full_signature: @Autowired  LocationService(
              LocationRepository repository,
              RouteOptimizer optimizer,
              DistanceMatrix distanceMatrix,
              ApplicationEventPublisher eventPublisher)
focal_class.identifier: LocationService
focal_class.modifiers: @Autowired
focal_class.parameters: (
              LocationRepository repository,
              RouteOptimizer optimizer,
              DistanceMatrix distanceMatrix,
              ApplicationEventPublisher eventPublisher)
focal_class.signature:  LocationService(
              LocationRepository repository,
              RouteOptimizer optimizer,
              DistanceMatrix distanceMatrix,
              ApplicationEventPublisher eventPublisher)
focal_class.class_method_signature: LocationService.createLocation(Coordinates coordinates, String description)
focal_class.full_signature: public synchronized boolean createLocation(Coordinates coordinates, String description)
focal_class.identifier: createLocation
focal_class.modifiers: public synchronized
focal_class.parameters: (Coordinates coordinates, String description)
focal_class.return: boolean
focal_class.signature: boolean createLocation(Coordinates coordinates, String description)
focal_class.class_method_signature: LocationService.addLocation(Location location)
focal_class.full_signature: public synchronized boolean addLocation(Location location)
focal_class.identifier: addLocation
focal_class.modifiers: public synchronized
focal_class.parameters: (Location location)
focal_class.return: boolean
focal_class.signature: boolean addLocation(Location location)
focal_class.class_method_signature: LocationService.submitToPlanner(Location location)
focal_class.full_signature: private boolean submitToPlanner(Location location)
focal_class.identifier: submitToPlanner
focal_class.modifiers: private
focal_class.parameters: (Location location)
focal_class.return: boolean
focal_class.signature: boolean submitToPlanner(Location location)
focal_class.class_method_signature: LocationService.removeLocation(long id)
focal_class.full_signature: public synchronized void removeLocation(long id)
focal_class.identifier: removeLocation
focal_class.modifiers: public synchronized
focal_class.parameters: (long id)
focal_class.return: void
focal_class.signature: void removeLocation(long id)
focal_class.class_method_signature: LocationService.removeAll()
focal_class.full_signature: public synchronized void removeAll()
focal_class.identifier: removeAll
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeAll()
focal_method.body: public synchronized boolean addLocation(Location location) {
          return submitToPlanner(Objects.requireNonNull(location));
      }
focal_method.class_method_signature: LocationService.addLocation(Location location)
focal_method.full_signature: public synchronized boolean addLocation(Location location)
focal_method.identifier: addLocation
focal_method.invocations: submitToPlanner requireNonNull
focal_method.modifiers: public synchronized
focal_method.parameters: (Location location)
focal_method.return: boolean
focal_method.signature: boolean addLocation(Location location)