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 should_convert_empty_data_set_correctly() {
          DataSet emptyDataSet = new DataSet();
          RoutingProblem routingProblem = toDomain(emptyDataSet);
          assertThat(routingProblem.name()).isEmpty();
          assertThat(routingProblem.depot()).isEmpty();
          assertThat(routingProblem.vehicles()).isEmpty();
          assertThat(routingProblem.visits()).isEmpty();
      }
test_case.class_method_signature: DataSetMarshallerTest.should_convert_empty_data_set_correctly()
test_case.full_signature: @Test void should_convert_empty_data_set_correctly()
test_case.identifier: should_convert_empty_data_set_correctly
test_case.invocations: toDomain isEmpty assertThat name isEmpty assertThat depot isEmpty assertThat vehicles isEmpty assertThat visits
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_convert_empty_data_set_correctly()
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: static RoutingProblem toDomain(DataSet dataSet) {
          return new RoutingProblem(
                  Optional.ofNullable(dataSet.getName()).orElse(""),
                  Optional.ofNullable(dataSet.getVehicles()).orElse(Collections.emptyList())
                          .stream()
                          .map(DataSetMarshaller::toDomain)
                          .collect(toList()),
                  Optional.ofNullable(dataSet.getDepot()).map(DataSetMarshaller::toDomain).orElse(null),
                  Optional.ofNullable(dataSet.getVisits()).orElse(Collections.emptyList())
                          .stream()
                          .map(DataSetMarshaller::toDomain)
                          .collect(toList()));
      }
focal_method.class_method_signature: DataSetMarshaller.toDomain(DataSet dataSet)
focal_method.full_signature: static RoutingProblem toDomain(DataSet dataSet)
focal_method.identifier: toDomain
focal_method.invocations: orElse ofNullable getName collect map stream orElse ofNullable getVehicles emptyList toList orElse map ofNullable getDepot collect map stream orElse ofNullable getVisits emptyList toList
focal_method.modifiers: static
focal_method.parameters: (DataSet dataSet)
focal_method.return: RoutingProblem
focal_method.signature: RoutingProblem toDomain(DataSet dataSet)