test_class.file: optaweb-vehicle-routing-backend/src/test/java/org/optaweb/vehiclerouting/service/demo/dataset/DataSetMarshallerTest.java
test_class.identifier: DataSetMarshallerTest
test_case.body: @Test
      void marshal_data_set() {
          DataSet dataSet = new DataSet();
          String name = "Test data set";
          dataSet.setName(name);
          DataSetLocation depot = new DataSetLocation("Depot", -1.1, -9.9);
          DataSetLocation location1 = new DataSetLocation("Location 1", 1.0, 0.1);
          DataSetLocation location2 = new DataSetLocation("Location 2", 2.0, 0.2);
          dataSet.setDepot(depot);
          dataSet.setVisits(Arrays.asList(location1, location2));
          DataSetVehicle vehicle1 = new DataSetVehicle("Vehicle 1", 123);
          DataSetVehicle vehicle2 = new DataSetVehicle("Vehicle 2", 222);
          dataSet.setVehicles(Arrays.asList(vehicle1, vehicle2));
  
          String yaml = new DataSetMarshaller().marshal(dataSet);
          assertThat(yaml)
                  .contains("name: \"" + name)
                  .contains(
                          depot.getLabel(),
                          location1.getLabel(),
                          location2.getLabel(),
                          vehicle1.name,
                          vehicle2.name,
                          String.valueOf(vehicle1.capacity),
                          String.valueOf(vehicle2.capacity));
      }
test_case.class_method_signature: DataSetMarshallerTest.marshal_data_set()
test_case.full_signature: @Test void marshal_data_set()
test_case.identifier: marshal_data_set
test_case.invocations: setName setDepot setVisits asList setVehicles asList marshal contains contains assertThat getLabel getLabel getLabel valueOf valueOf
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void marshal_data_set()
focal_class.declarator: mapper
focal_class.modifier: private final
focal_class.original_string: private final ObjectMapper mapper;
focal_class.type: ObjectMapper
focal_class.var_name: mapper
focal_class.file: optaweb-vehicle-routing-backend/src/main/java/org/optaweb/vehiclerouting/service/demo/dataset/DataSetMarshaller.java
focal_class.identifier: DataSetMarshaller
focal_class.class_method_signature: DataSetMarshaller.DataSetMarshaller()
focal_class.full_signature:   DataSetMarshaller()
focal_class.identifier: DataSetMarshaller
focal_class.parameters: ()
focal_class.signature:  DataSetMarshaller()
focal_class.class_method_signature: DataSetMarshaller.DataSetMarshaller(ObjectMapper mapper)
focal_class.full_signature:   DataSetMarshaller(ObjectMapper mapper)
focal_class.identifier: DataSetMarshaller
focal_class.parameters: (ObjectMapper mapper)
focal_class.signature:  DataSetMarshaller(ObjectMapper mapper)
focal_class.class_method_signature: DataSetMarshaller.unmarshal(Reader reader)
focal_class.full_signature: public RoutingProblem unmarshal(Reader reader)
focal_class.identifier: unmarshal
focal_class.modifiers: public
focal_class.parameters: (Reader reader)
focal_class.return: RoutingProblem
focal_class.signature: RoutingProblem unmarshal(Reader reader)
focal_class.class_method_signature: DataSetMarshaller.marshal(RoutingProblem routingProblem)
focal_class.full_signature: public String marshal(RoutingProblem routingProblem)
focal_class.identifier: marshal
focal_class.modifiers: public
focal_class.parameters: (RoutingProblem routingProblem)
focal_class.return: String
focal_class.signature: String marshal(RoutingProblem routingProblem)
focal_class.class_method_signature: DataSetMarshaller.unmarshalToDataSet(Reader reader)
focal_class.full_signature:  DataSet unmarshalToDataSet(Reader reader)
focal_class.identifier: unmarshalToDataSet
focal_class.parameters: (Reader reader)
focal_class.return: DataSet
focal_class.signature: DataSet unmarshalToDataSet(Reader reader)
focal_class.class_method_signature: DataSetMarshaller.marshal(DataSet dataSet)
focal_class.full_signature:  String marshal(DataSet dataSet)
focal_class.identifier: marshal
focal_class.parameters: (DataSet dataSet)
focal_class.return: String
focal_class.signature: String marshal(DataSet dataSet)
focal_class.class_method_signature: DataSetMarshaller.toDataSet(RoutingProblem routingProblem)
focal_class.full_signature: static DataSet toDataSet(RoutingProblem routingProblem)
focal_class.identifier: toDataSet
focal_class.modifiers: static
focal_class.parameters: (RoutingProblem routingProblem)
focal_class.return: DataSet
focal_class.signature: DataSet toDataSet(RoutingProblem routingProblem)
focal_class.class_method_signature: DataSetMarshaller.toDataSet(LocationData locationData)
focal_class.full_signature: static DataSetLocation toDataSet(LocationData locationData)
focal_class.identifier: toDataSet
focal_class.modifiers: static
focal_class.parameters: (LocationData locationData)
focal_class.return: DataSetLocation
focal_class.signature: DataSetLocation toDataSet(LocationData locationData)
focal_class.class_method_signature: DataSetMarshaller.toDataSet(VehicleData vehicleData)
focal_class.full_signature: static DataSetVehicle toDataSet(VehicleData vehicleData)
focal_class.identifier: toDataSet
focal_class.modifiers: static
focal_class.parameters: (VehicleData vehicleData)
focal_class.return: DataSetVehicle
focal_class.signature: DataSetVehicle toDataSet(VehicleData vehicleData)
focal_class.class_method_signature: DataSetMarshaller.toDomain(DataSet dataSet)
focal_class.full_signature: static RoutingProblem toDomain(DataSet dataSet)
focal_class.identifier: toDomain
focal_class.modifiers: static
focal_class.parameters: (DataSet dataSet)
focal_class.return: RoutingProblem
focal_class.signature: RoutingProblem toDomain(DataSet dataSet)
focal_class.class_method_signature: DataSetMarshaller.toDomain(DataSetLocation dataSetLocation)
focal_class.full_signature: static LocationData toDomain(DataSetLocation dataSetLocation)
focal_class.identifier: toDomain
focal_class.modifiers: static
focal_class.parameters: (DataSetLocation dataSetLocation)
focal_class.return: LocationData
focal_class.signature: LocationData toDomain(DataSetLocation dataSetLocation)
focal_class.class_method_signature: DataSetMarshaller.toDomain(DataSetVehicle dataSetVehicle)
focal_class.full_signature: static VehicleData toDomain(DataSetVehicle dataSetVehicle)
focal_class.identifier: toDomain
focal_class.modifiers: static
focal_class.parameters: (DataSetVehicle dataSetVehicle)
focal_class.return: VehicleData
focal_class.signature: VehicleData toDomain(DataSetVehicle dataSetVehicle)
focal_method.body: public String marshal(RoutingProblem routingProblem) {
          return marshal(toDataSet(routingProblem));
      }
focal_method.class_method_signature: DataSetMarshaller.marshal(RoutingProblem routingProblem)
focal_method.full_signature: public String marshal(RoutingProblem routingProblem)
focal_method.identifier: marshal
focal_method.invocations: marshal toDataSet
focal_method.modifiers: public
focal_method.parameters: (RoutingProblem routingProblem)
focal_method.return: String
focal_method.signature: String marshal(RoutingProblem routingProblem)