@Test public void testExceptionProperties() { Map<String, Object> propertyMap; TagResponse testObject = new TagResponse(); assertTrue(testObject.getExceptionProperties() == null); propertyMap = null; testObject = new TagResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap = new HashMap<>(); testObject = new TagResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap.put("propertyName", "propertyValue"); testObject = new TagResponse(); testObject.setExceptionProperties(propertyMap); Map<String, Object> retrievedPropertyMap = testObject.getExceptionProperties(); assertTrue(retrievedPropertyMap != null); assertFalse(retrievedPropertyMap.isEmpty()); assertTrue("propertyValue".equals(retrievedPropertyMap.get("propertyName"))); }
@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; } TagResponse that = (TagResponse) objectToCompare; return Objects.equals(getTag(), that.getTag()); }
TagResponse extends OCFOMASAPIResponse { @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; } TagResponse that = (TagResponse) objectToCompare; return Objects.equals(getTag(), that.getTag()); } }
TagResponse extends OCFOMASAPIResponse { @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; } TagResponse that = (TagResponse) objectToCompare; return Objects.equals(getTag(), that.getTag()); } TagResponse();  TagResponse(TagResponse template); }
TagResponse extends OCFOMASAPIResponse { @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; } TagResponse that = (TagResponse) objectToCompare; return Objects.equals(getTag(), that.getTag()); } TagResponse();  TagResponse(TagResponse template); InformalTag getTag(); void setTag(InformalTag tag); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
TagResponse extends OCFOMASAPIResponse { @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; } TagResponse that = (TagResponse) objectToCompare; return Objects.equals(getTag(), that.getTag()); } TagResponse();  TagResponse(TagResponse template); InformalTag getTag(); void setTag(InformalTag tag); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }