test_class.file: optaweb-vehicle-routing-backend/src/test/java/org/optaweb/vehiclerouting/plugin/persistence/DistanceEntityTest.java
test_class.identifier: DistanceEntityTest
test_case.body: @Test
      void equals() {
          final long from = 10;
          final long to = 2000;
          final DistanceKey distanceKey = new DistanceKey(from, to);
          final long distance = 50001;
  
          DistanceEntity distanceEntity = new DistanceEntity(distanceKey, distance);
          assertThat(distanceEntity)
                  .isEqualTo(distanceEntity)
                  .isEqualTo(new DistanceEntity(new DistanceKey(from, to), distance))
                  .isNotEqualTo(null)
                  .isNotEqualTo(distanceKey)
                  .isNotEqualTo(new DistanceEntity(distanceKey, distance + 1))
                  .isNotEqualTo(new DistanceEntity(new DistanceKey(to, from), distance));
      }
test_case.class_method_signature: DistanceEntityTest.equals()
test_case.full_signature: @Test void equals()
test_case.identifier: equals
test_case.invocations: isNotEqualTo isNotEqualTo isNotEqualTo isNotEqualTo isEqualTo isEqualTo assertThat
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void equals()
focal_class.declarator: key
focal_class.modifier: @EmbeddedId
      private
focal_class.original_string: @EmbeddedId
      private DistanceKey key;
focal_class.type: DistanceKey
focal_class.var_name: key
focal_class.declarator: distance
focal_class.modifier: private
focal_class.original_string: private Long distance;
focal_class.type: Long
focal_class.var_name: distance
focal_class.file: optaweb-vehicle-routing-backend/src/main/java/org/optaweb/vehiclerouting/plugin/persistence/DistanceEntity.java
focal_class.identifier: DistanceEntity
focal_class.class_method_signature: DistanceEntity.DistanceEntity()
focal_class.full_signature: protected  DistanceEntity()
focal_class.identifier: DistanceEntity
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  DistanceEntity()
focal_class.class_method_signature: DistanceEntity.DistanceEntity(DistanceKey key, Long distance)
focal_class.full_signature:   DistanceEntity(DistanceKey key, Long distance)
focal_class.identifier: DistanceEntity
focal_class.parameters: (DistanceKey key, Long distance)
focal_class.signature:  DistanceEntity(DistanceKey key, Long distance)
focal_class.class_method_signature: DistanceEntity.getKey()
focal_class.full_signature:  DistanceKey getKey()
focal_class.identifier: getKey
focal_class.parameters: ()
focal_class.return: DistanceKey
focal_class.signature: DistanceKey getKey()
focal_class.class_method_signature: DistanceEntity.getDistance()
focal_class.full_signature:  Long getDistance()
focal_class.identifier: getDistance
focal_class.parameters: ()
focal_class.return: Long
focal_class.signature: Long getDistance()
focal_class.class_method_signature: DistanceEntity.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: DistanceEntity.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_method.body: @Override
      public boolean equals(Object o) {
          if (this == o) {
              return true;
          }
          if (o == null || getClass() != o.getClass()) {
              return false;
          }
          DistanceEntity that = (DistanceEntity) o;
          return key.equals(that.key) &&
                  distance.equals(that.distance);
      }
focal_method.class_method_signature: DistanceEntity.equals(Object o)
focal_method.full_signature: @Override public boolean equals(Object o)
focal_method.identifier: equals
focal_method.invocations: getClass getClass equals equals
focal_method.modifiers: @Override public
focal_method.parameters: (Object o)
focal_method.return: boolean
focal_method.signature: boolean equals(Object o)