@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); EndpointProperties sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof EndpointProperties)) { return false; } if (!super.equals(objectToCompare)) { return false; } EndpointProperties that = (EndpointProperties) objectToCompare; return Objects.equals(getEndpointBean(), that.getEndpointBean()); }
EndpointProperties extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof EndpointProperties)) { return false; } if (!super.equals(objectToCompare)) { return false; } EndpointProperties that = (EndpointProperties) objectToCompare; return Objects.equals(getEndpointBean(), that.getEndpointBean()); } }
EndpointProperties extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof EndpointProperties)) { return false; } if (!super.equals(objectToCompare)) { return false; } EndpointProperties that = (EndpointProperties) objectToCompare; return Objects.equals(getEndpointBean(), that.getEndpointBean()); } EndpointProperties(Endpoint  endpointBean);  EndpointProperties(AssetDescriptor parentAsset,
                              Endpoint        endpointBean);  EndpointProperties(EndpointProperties templateEndpoint);  EndpointProperties(AssetDescriptor    parentAsset,
                              EndpointProperties templateEndpoint); }
EndpointProperties extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof EndpointProperties)) { return false; } if (!super.equals(objectToCompare)) { return false; } EndpointProperties that = (EndpointProperties) objectToCompare; return Objects.equals(getEndpointBean(), that.getEndpointBean()); } EndpointProperties(Endpoint  endpointBean);  EndpointProperties(AssetDescriptor parentAsset,
                              Endpoint        endpointBean);  EndpointProperties(EndpointProperties templateEndpoint);  EndpointProperties(AssetDescriptor    parentAsset,
                              EndpointProperties templateEndpoint); String getDisplayName(); String getDescription(); String getAddress(); String getProtocol(); String getEncryptionMethod(); @Override String toString(); @Override boolean equals(Object objectToCompare); }
EndpointProperties extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof EndpointProperties)) { return false; } if (!super.equals(objectToCompare)) { return false; } EndpointProperties that = (EndpointProperties) objectToCompare; return Objects.equals(getEndpointBean(), that.getEndpointBean()); } EndpointProperties(Endpoint  endpointBean);  EndpointProperties(AssetDescriptor parentAsset,
                              Endpoint        endpointBean);  EndpointProperties(EndpointProperties templateEndpoint);  EndpointProperties(AssetDescriptor    parentAsset,
                              EndpointProperties templateEndpoint); String getDisplayName(); String getDescription(); String getAddress(); String getProtocol(); String getEncryptionMethod(); @Override String toString(); @Override boolean equals(Object objectToCompare);  }