@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); AssetSchemaElement 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 == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetSchemaType that = (AssetSchemaType) objectToCompare; return Objects.equals(getSchemaElementBean(), that.getSchemaTypeBean()); }
AssetSchemaElement extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetSchemaType that = (AssetSchemaType) objectToCompare; return Objects.equals(getSchemaElementBean(), that.getSchemaTypeBean()); } }
AssetSchemaElement extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetSchemaType that = (AssetSchemaType) objectToCompare; return Objects.equals(getSchemaElementBean(), that.getSchemaTypeBean()); } protected  AssetSchemaElement(AssetDescriptor parentAsset);  AssetSchemaElement(SchemaElement schemaElementBean);  AssetSchemaElement(AssetDescriptor parentAsset, SchemaElement schemaElementBean);  AssetSchemaElement(AssetDescriptor parentAsset, AssetSchemaElement template); }
AssetSchemaElement extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetSchemaType that = (AssetSchemaType) objectToCompare; return Objects.equals(getSchemaElementBean(), that.getSchemaTypeBean()); } protected  AssetSchemaElement(AssetDescriptor parentAsset);  AssetSchemaElement(SchemaElement schemaElementBean);  AssetSchemaElement(AssetDescriptor parentAsset, SchemaElement schemaElementBean);  AssetSchemaElement(AssetDescriptor parentAsset, AssetSchemaElement template); boolean isDeprecated(); String getDisplayName(); String getDescription(); @Override String toString(); @Override boolean equals(Object objectToCompare); }
AssetSchemaElement extends AssetReferenceable { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetSchemaType that = (AssetSchemaType) objectToCompare; return Objects.equals(getSchemaElementBean(), that.getSchemaTypeBean()); } protected  AssetSchemaElement(AssetDescriptor parentAsset);  AssetSchemaElement(SchemaElement schemaElementBean);  AssetSchemaElement(AssetDescriptor parentAsset, SchemaElement schemaElementBean);  AssetSchemaElement(AssetDescriptor parentAsset, AssetSchemaElement template); boolean isDeprecated(); String getDisplayName(); String getDescription(); @Override String toString(); @Override boolean equals(Object objectToCompare);  }