@Test public void testEquals() { assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); LogRecordRequestBody sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); LogRecordRequestBody differentObject = getTestObject(); differentObject.setContextId("DifferentContextId"); assertFalse(getTestObject().equals(differentObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } LogRecordRequestBody that = (LogRecordRequestBody) objectToCompare; return Objects.equals(getConnectorInstanceId(), that.getConnectorInstanceId()) && Objects.equals(getConnectionName(), that.getConnectionName()) && Objects.equals(getConnectorType(), that.getConnectorType()) && Objects.equals(getContextId(), that.getContextId()) && Objects.equals(getMessage(), that.getMessage()); }
LogRecordRequestBody extends AssetConsumerOMASAPIRequestBody { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } LogRecordRequestBody that = (LogRecordRequestBody) objectToCompare; return Objects.equals(getConnectorInstanceId(), that.getConnectorInstanceId()) && Objects.equals(getConnectionName(), that.getConnectionName()) && Objects.equals(getConnectorType(), that.getConnectorType()) && Objects.equals(getContextId(), that.getContextId()) && Objects.equals(getMessage(), that.getMessage()); } }
LogRecordRequestBody extends AssetConsumerOMASAPIRequestBody { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } LogRecordRequestBody that = (LogRecordRequestBody) objectToCompare; return Objects.equals(getConnectorInstanceId(), that.getConnectorInstanceId()) && Objects.equals(getConnectionName(), that.getConnectionName()) && Objects.equals(getConnectorType(), that.getConnectorType()) && Objects.equals(getContextId(), that.getContextId()) && Objects.equals(getMessage(), that.getMessage()); } LogRecordRequestBody();  LogRecordRequestBody(LogRecordRequestBody template); }
LogRecordRequestBody extends AssetConsumerOMASAPIRequestBody { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } LogRecordRequestBody that = (LogRecordRequestBody) objectToCompare; return Objects.equals(getConnectorInstanceId(), that.getConnectorInstanceId()) && Objects.equals(getConnectionName(), that.getConnectionName()) && Objects.equals(getConnectorType(), that.getConnectorType()) && Objects.equals(getContextId(), that.getContextId()) && Objects.equals(getMessage(), that.getMessage()); } LogRecordRequestBody();  LogRecordRequestBody(LogRecordRequestBody template); String getConnectorInstanceId(); void setConnectorInstanceId(String connectorInstanceId); String getConnectionName(); void setConnectionName(String connectionName); String getConnectorType(); void setConnectorType(String connectorType); String getContextId(); void setContextId(String contextId); String getMessage(); void setMessage(String message); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
LogRecordRequestBody extends AssetConsumerOMASAPIRequestBody { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } LogRecordRequestBody that = (LogRecordRequestBody) objectToCompare; return Objects.equals(getConnectorInstanceId(), that.getConnectorInstanceId()) && Objects.equals(getConnectionName(), that.getConnectionName()) && Objects.equals(getConnectorType(), that.getConnectorType()) && Objects.equals(getContextId(), that.getContextId()) && Objects.equals(getMessage(), that.getMessage()); } LogRecordRequestBody();  LogRecordRequestBody(LogRecordRequestBody template); String getConnectorInstanceId(); void setConnectorInstanceId(String connectorInstanceId); String getConnectionName(); void setConnectionName(String connectionName); String getConnectorType(); void setConnectorType(String connectorType); String getContextId(); void setContextId(String contextId); String getMessage(); void setMessage(String message); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }