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 unmarshal_data_set() throws IOException {
          DataSet dataSet;
          try (InputStream inputStream = DataSetMarshallerTest.class.getResourceAsStream("test-belgium.yaml")) {
              dataSet = new DataSetMarshaller().unmarshalToDataSet(
                      new InputStreamReader(inputStream, StandardCharsets.UTF_8));
          }
          assertThat(dataSet).isNotNull();
  
          assertThat(dataSet.getName()).isEqualTo("Belgium test");
          assertThat(dataSet.getDepot()).isNotNull();
          assertThat(dataSet.getDepot().getLabel()).isEqualTo("Brussels");
          assertThat(dataSet.getDepot().getLatitude()).isEqualTo(50.85);
          assertThat(dataSet.getDepot().getLongitude()).isEqualTo(4.35);
          assertThat(dataSet.getVisits())
                  .extracting("label")
                  .containsExactlyInAnyOrder("Aalst", "Châtelet", "La Louvière", "Sint-Niklaas", "Ypres");
          assertThat(dataSet.getVehicles())
                  .extracting(dataSetVehicle -> dataSetVehicle.name, dataSetVehicle -> dataSetVehicle.capacity)
                  .containsExactlyInAnyOrder(
                          tuple("vehicle 1", 10),
                          tuple("vehicle 2", 12),
                          tuple("vehicle 3", 1_000_000));
      }
test_case.class_method_signature: DataSetMarshallerTest.unmarshal_data_set()
test_case.full_signature: @Test void unmarshal_data_set()
test_case.identifier: unmarshal_data_set
test_case.invocations: getResourceAsStream unmarshalToDataSet isNotNull assertThat isEqualTo assertThat getName isNotNull assertThat getDepot isEqualTo assertThat getLabel getDepot isEqualTo assertThat getLatitude getDepot isEqualTo assertThat getLongitude getDepot containsExactlyInAnyOrder extracting assertThat getVisits containsExactlyInAnyOrder extracting assertThat getVehicles tuple tuple tuple
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void unmarshal_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: DataSet unmarshalToDataSet(Reader reader) {
          try {
              return mapper.readValue(reader, DataSet.class);
          } catch (IOException e) {
              throw new IllegalStateException("Can't read demo data set", e);
          }
      }
focal_method.class_method_signature: DataSetMarshaller.unmarshalToDataSet(Reader reader)
focal_method.full_signature:  DataSet unmarshalToDataSet(Reader reader)
focal_method.identifier: unmarshalToDataSet
focal_method.invocations: readValue
focal_method.parameters: (Reader reader)
focal_method.return: DataSet
focal_method.signature: DataSet unmarshalToDataSet(Reader reader)