@Test public void testExceptionProperties() { Map<String, Object> propertyMap; CommentsResponse testObject = new CommentsResponse(); assertTrue(testObject.getExceptionProperties() == null); propertyMap = null; testObject = new CommentsResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap = new HashMap<>(); testObject = new CommentsResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap.put("propertyName", "propertyValue"); testObject = new CommentsResponse(); 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 instanceof CommentsResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CommentsResponse that = (CommentsResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); }
CommentsResponse extends PagedResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof CommentsResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CommentsResponse that = (CommentsResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); } }
CommentsResponse extends PagedResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof CommentsResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CommentsResponse that = (CommentsResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); } CommentsResponse();  CommentsResponse(CommentsResponse template); }
CommentsResponse extends PagedResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof CommentsResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CommentsResponse that = (CommentsResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); } CommentsResponse();  CommentsResponse(CommentsResponse template); List<CommentResponse> getList(); void setList(List<CommentResponse> responseObjects); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
CommentsResponse extends PagedResponse { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof CommentsResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CommentsResponse that = (CommentsResponse) objectToCompare; return Objects.equals(responseObjects, that.responseObjects); } CommentsResponse();  CommentsResponse(CommentsResponse template); List<CommentResponse> getList(); void setList(List<CommentResponse> responseObjects); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }