@Test public void testNullObject() { ConnectionResponse nullObject = new ConnectionResponse(); assertTrue(nullObject.getRelatedHTTPCode() == 200); assertTrue(nullObject.getExceptionClassName() == null); assertTrue(nullObject.getExceptionErrorMessage() == null); assertTrue(nullObject.getExceptionSystemAction() == null); assertTrue(nullObject.getExceptionUserAction() == null); assertTrue(nullObject.getExceptionProperties() == null); assertTrue(nullObject.getConnection() == null); nullObject = new ConnectionResponse(null); assertTrue(nullObject.getRelatedHTTPCode() == 200); assertTrue(nullObject.getExceptionClassName() == null); assertTrue(nullObject.getExceptionErrorMessage() == null); assertTrue(nullObject.getExceptionSystemAction() == null); assertTrue(nullObject.getExceptionUserAction() == null); assertTrue(nullObject.getExceptionProperties() == null); assertTrue(nullObject.getConnection() == null); }
public Connection getConnection() { if (connection == null) { return null; } else { return connection; } }
ConnectionResponse extends OCFOMASAPIResponse { public Connection getConnection() { if (connection == null) { return null; } else { return connection; } } }
ConnectionResponse extends OCFOMASAPIResponse { public Connection getConnection() { if (connection == null) { return null; } else { return connection; } } ConnectionResponse();  ConnectionResponse(ConnectionResponse  template); }
ConnectionResponse extends OCFOMASAPIResponse { public Connection getConnection() { if (connection == null) { return null; } else { return connection; } } ConnectionResponse();  ConnectionResponse(ConnectionResponse  template); Connection getConnection(); void setConnection(Connection connection); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
ConnectionResponse extends OCFOMASAPIResponse { public Connection getConnection() { if (connection == null) { return null; } else { return connection; } } ConnectionResponse();  ConnectionResponse(ConnectionResponse  template); Connection getConnection(); void setConnection(Connection connection); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }