test_class.declarator: json
test_class.modifier: private
test_class.original_string: private JacksonTester<PortableVehicle> json;
test_class.type: JacksonTester<PortableVehicle>
test_class.var_name: json
test_class.file: optaweb-vehicle-routing-backend/src/test/java/org/optaweb/vehiclerouting/plugin/websocket/PortableVehicleTest.java
test_class.identifier: PortableVehicleTest
test_case.body: @Test
      void fromVehicle() {
          long id = 321;
          String name = "Pink XY-123 B";
          int capacity = 31;
          PortableVehicle portableVehicle = PortableVehicle.fromVehicle(VehicleFactory.createVehicle(id, name, capacity));
          assertThat(portableVehicle.getId()).isEqualTo(id);
          assertThat(portableVehicle.getName()).isEqualTo(name);
          assertThat(portableVehicle.getCapacity()).isEqualTo(capacity);
  
          assertThatNullPointerException()
                  .isThrownBy(() -> PortableVehicle.fromVehicle(null))
                  .withMessageContaining("vehicle");
      }
test_case.class_method_signature: PortableVehicleTest.fromVehicle()
test_case.full_signature: @Test void fromVehicle()
test_case.identifier: fromVehicle
test_case.invocations: fromVehicle createVehicle isEqualTo assertThat getId isEqualTo assertThat getName isEqualTo assertThat getCapacity withMessageContaining isThrownBy assertThatNullPointerException fromVehicle
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void fromVehicle()
focal_class.declarator: id
focal_class.modifier: private final
focal_class.original_string: private final long id;
focal_class.type: long
focal_class.var_name: id
focal_class.declarator: name
focal_class.modifier: private final
focal_class.original_string: private final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: capacity
focal_class.modifier: private final
focal_class.original_string: private final int capacity;
focal_class.type: int
focal_class.var_name: capacity
focal_class.file: optaweb-vehicle-routing-backend/src/main/java/org/optaweb/vehiclerouting/plugin/websocket/PortableVehicle.java
focal_class.identifier: PortableVehicle
focal_class.class_method_signature: PortableVehicle.fromVehicle(Vehicle vehicle)
focal_class.full_signature: static PortableVehicle fromVehicle(Vehicle vehicle)
focal_class.identifier: fromVehicle
focal_class.modifiers: static
focal_class.parameters: (Vehicle vehicle)
focal_class.return: PortableVehicle
focal_class.signature: PortableVehicle fromVehicle(Vehicle vehicle)
focal_class.class_method_signature: PortableVehicle.PortableVehicle(long id, String name, int capacity)
focal_class.full_signature:   PortableVehicle(long id, String name, int capacity)
focal_class.identifier: PortableVehicle
focal_class.parameters: (long id, String name, int capacity)
focal_class.signature:  PortableVehicle(long id, String name, int capacity)
focal_class.class_method_signature: PortableVehicle.getId()
focal_class.full_signature: public long getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getId()
focal_class.class_method_signature: PortableVehicle.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: PortableVehicle.getCapacity()
focal_class.full_signature: public int getCapacity()
focal_class.identifier: getCapacity
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCapacity()
focal_class.class_method_signature: PortableVehicle.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: PortableVehicle.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: PortableVehicle.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: static PortableVehicle fromVehicle(Vehicle vehicle) {
          Objects.requireNonNull(vehicle, "vehicle must not be null");
          return new PortableVehicle(vehicle.id(), vehicle.name(), vehicle.capacity());
      }
focal_method.class_method_signature: PortableVehicle.fromVehicle(Vehicle vehicle)
focal_method.full_signature: static PortableVehicle fromVehicle(Vehicle vehicle)
focal_method.identifier: fromVehicle
focal_method.invocations: requireNonNull id name capacity
focal_method.modifiers: static
focal_method.parameters: (Vehicle vehicle)
focal_method.return: PortableVehicle
focal_method.signature: PortableVehicle fromVehicle(Vehicle vehicle)