test_class.file: optaweb-vehicle-routing-backend/src/test/java/org/optaweb/vehiclerouting/plugin/planner/domain/PlanningVisitFactoryTest.java
test_class.identifier: PlanningVisitFactoryTest
test_case.body: @Test
      void visit_should_have_same_id_as_location_and_default_demand() {
          long id = 4;
          PlanningLocation location = PlanningLocationFactory.testLocation(id);
  
          PlanningVisit visit = PlanningVisitFactory.fromLocation(location);
  
          assertThat(visit.getId()).isEqualTo(location.getId());
          assertThat(visit.getLocation()).isEqualTo(location);
          assertThat(visit.getDemand()).isEqualTo(PlanningVisitFactory.DEFAULT_VISIT_DEMAND);
      }
test_case.class_method_signature: PlanningVisitFactoryTest.visit_should_have_same_id_as_location_and_default_demand()
test_case.full_signature: @Test void visit_should_have_same_id_as_location_and_default_demand()
test_case.identifier: visit_should_have_same_id_as_location_and_default_demand
test_case.invocations: testLocation fromLocation isEqualTo assertThat getId getId isEqualTo assertThat getLocation isEqualTo assertThat getDemand
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void visit_should_have_same_id_as_location_and_default_demand()
focal_class.declarator: DEFAULT_VISIT_DEMAND = 1
focal_class.modifier: static final
focal_class.original_string: static final int DEFAULT_VISIT_DEMAND = 1;
focal_class.type: int
focal_class.var_name: DEFAULT_VISIT_DEMAND
focal_class.file: optaweb-vehicle-routing-backend/src/main/java/org/optaweb/vehiclerouting/plugin/planner/domain/PlanningVisitFactory.java
focal_class.identifier: PlanningVisitFactory
focal_class.class_method_signature: PlanningVisitFactory.PlanningVisitFactory()
focal_class.full_signature: private  PlanningVisitFactory()
focal_class.identifier: PlanningVisitFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  PlanningVisitFactory()
focal_class.class_method_signature: PlanningVisitFactory.fromLocation(PlanningLocation location)
focal_class.full_signature: public static PlanningVisit fromLocation(PlanningLocation location)
focal_class.identifier: fromLocation
focal_class.modifiers: public static
focal_class.parameters: (PlanningLocation location)
focal_class.return: PlanningVisit
focal_class.signature: PlanningVisit fromLocation(PlanningLocation location)
focal_class.class_method_signature: PlanningVisitFactory.fromLocation(PlanningLocation location, int demand)
focal_class.full_signature: public static PlanningVisit fromLocation(PlanningLocation location, int demand)
focal_class.identifier: fromLocation
focal_class.modifiers: public static
focal_class.parameters: (PlanningLocation location, int demand)
focal_class.return: PlanningVisit
focal_class.signature: PlanningVisit fromLocation(PlanningLocation location, int demand)
focal_class.class_method_signature: PlanningVisitFactory.testVisit(long id)
focal_class.full_signature: public static PlanningVisit testVisit(long id)
focal_class.identifier: testVisit
focal_class.modifiers: public static
focal_class.parameters: (long id)
focal_class.return: PlanningVisit
focal_class.signature: PlanningVisit testVisit(long id)
focal_method.body: public static PlanningVisit fromLocation(PlanningLocation location) {
          return fromLocation(location, DEFAULT_VISIT_DEMAND);
      }
focal_method.class_method_signature: PlanningVisitFactory.fromLocation(PlanningLocation location)
focal_method.full_signature: public static PlanningVisit fromLocation(PlanningLocation location)
focal_method.identifier: fromLocation
focal_method.invocations: fromLocation
focal_method.modifiers: public static
focal_method.parameters: (PlanningLocation location)
focal_method.return: PlanningVisit
focal_method.signature: PlanningVisit fromLocation(PlanningLocation location)