test_class.declarator: json
test_class.modifier: private
test_class.original_string: private JacksonTester<PortableErrorMessage> json;
test_class.type: JacksonTester<PortableErrorMessage>
test_class.var_name: json
test_class.file: optaweb-vehicle-routing-backend/src/test/java/org/optaweb/vehiclerouting/plugin/websocket/PortableErrorMessageTest.java
test_class.identifier: PortableErrorMessageTest
test_case.body: @Test
      void equals_hashCode_toString() {
          String id = "1";
          String text = "error message";
          ErrorMessage message = ErrorMessage.of(id, text);
          PortableErrorMessage portableErrorMessage = PortableErrorMessage.fromMessage(message);
  
          assertThat(portableErrorMessage).isNotEqualTo(null)
                  // equals()
                  .isNotEqualTo(new PortableErrorMessage("", text))
                  .isNotEqualTo(new PortableErrorMessage(id, ""))
                  .isNotEqualTo(message)
                  .isEqualTo(portableErrorMessage)
                  .isEqualTo(new PortableErrorMessage(id, text))
                  // hasCode()
                  .hasSameHashCodeAs(new PortableErrorMessage(id, text))
                  // toString()
                  .asString().contains(id, text);
      }
test_case.class_method_signature: PortableErrorMessageTest.equals_hashCode_toString()
test_case.full_signature: @Test void equals_hashCode_toString()
test_case.identifier: equals_hashCode_toString
test_case.invocations: of fromMessage contains asString hasSameHashCodeAs isEqualTo isEqualTo isNotEqualTo isNotEqualTo isNotEqualTo isNotEqualTo assertThat
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void equals_hashCode_toString()
focal_class.declarator: id
focal_class.modifier: private final
focal_class.original_string: private final String id;
focal_class.type: String
focal_class.var_name: id
focal_class.declarator: text
focal_class.modifier: private final
focal_class.original_string: private final String text;
focal_class.type: String
focal_class.var_name: text
focal_class.file: optaweb-vehicle-routing-backend/src/main/java/org/optaweb/vehiclerouting/plugin/websocket/PortableErrorMessage.java
focal_class.identifier: PortableErrorMessage
focal_class.class_method_signature: PortableErrorMessage.fromMessage(ErrorMessage message)
focal_class.full_signature: static PortableErrorMessage fromMessage(ErrorMessage message)
focal_class.identifier: fromMessage
focal_class.modifiers: static
focal_class.parameters: (ErrorMessage message)
focal_class.return: PortableErrorMessage
focal_class.signature: PortableErrorMessage fromMessage(ErrorMessage message)
focal_class.class_method_signature: PortableErrorMessage.PortableErrorMessage(String id, String text)
focal_class.full_signature:   PortableErrorMessage(String id, String text)
focal_class.identifier: PortableErrorMessage
focal_class.parameters: (String id, String text)
focal_class.signature:  PortableErrorMessage(String id, String text)
focal_class.class_method_signature: PortableErrorMessage.getId()
focal_class.full_signature: public String getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: PortableErrorMessage.getText()
focal_class.full_signature: public String getText()
focal_class.identifier: getText
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getText()
focal_class.class_method_signature: PortableErrorMessage.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: PortableErrorMessage.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: PortableErrorMessage.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 PortableErrorMessage fromMessage(ErrorMessage message) {
          return new PortableErrorMessage(message.id, message.text);
      }
focal_method.class_method_signature: PortableErrorMessage.fromMessage(ErrorMessage message)
focal_method.full_signature: static PortableErrorMessage fromMessage(ErrorMessage message)
focal_method.identifier: fromMessage
focal_method.modifiers: static
focal_method.parameters: (ErrorMessage message)
focal_method.return: PortableErrorMessage
focal_method.signature: PortableErrorMessage fromMessage(ErrorMessage message)