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