@Test public void testPoolDescriptorToString() { poolDescriptor = new PoolDescriptor("test-server", "test-jdbcUrl", connConfig, poolConfig, null); assertEquals("PoolDescriptor{jdbcUrl=test-jdbcUrl, user=test-user, password=*************, connectionConfig={test-other-property=test-other-property-value}, poolConfig={test-pool-property=test-pool-property-value}, qualifier=null}", poolDescriptor.toString()); poolDescriptor = new PoolDescriptor("test-server", "test-jdbcUrl", connConfig, poolConfig, "foo"); assertEquals("PoolDescriptor{jdbcUrl=test-jdbcUrl, user=test-user, password=*************, connectionConfig={test-other-property=test-other-property-value}, poolConfig={test-pool-property=test-pool-property-value}, qualifier=foo}", poolDescriptor.toString()); }
@Override public String toString() { return "PoolDescriptor{" + "jdbcUrl=" + jdbcUrl + ", user=" + user + ", password=" + ConnectionManager.maskPassword(password) + ", connectionConfig=" + connectionConfig + ", poolConfig=" + poolConfig + ", qualifier=" + qualifier + '}'; }
PoolDescriptor { @Override public String toString() { return "PoolDescriptor{" + "jdbcUrl=" + jdbcUrl + ", user=" + user + ", password=" + ConnectionManager.maskPassword(password) + ", connectionConfig=" + connectionConfig + ", poolConfig=" + poolConfig + ", qualifier=" + qualifier + '}'; } }
PoolDescriptor { @Override public String toString() { return "PoolDescriptor{" + "jdbcUrl=" + jdbcUrl + ", user=" + user + ", password=" + ConnectionManager.maskPassword(password) + ", connectionConfig=" + connectionConfig + ", poolConfig=" + poolConfig + ", qualifier=" + qualifier + '}'; } PoolDescriptor(String server, String jdbcUrl, Properties connectionConfig, Properties poolConfig, String qualifier); }
PoolDescriptor { @Override public String toString() { return "PoolDescriptor{" + "jdbcUrl=" + jdbcUrl + ", user=" + user + ", password=" + ConnectionManager.maskPassword(password) + ", connectionConfig=" + connectionConfig + ", poolConfig=" + poolConfig + ", qualifier=" + qualifier + '}'; } PoolDescriptor(String server, String jdbcUrl, Properties connectionConfig, Properties poolConfig, String qualifier); String getServer(); String getJdbcUrl(); String getUser(); String getPassword(); Properties getConnectionConfig(); Properties getPoolConfig(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
PoolDescriptor { @Override public String toString() { return "PoolDescriptor{" + "jdbcUrl=" + jdbcUrl + ", user=" + user + ", password=" + ConnectionManager.maskPassword(password) + ", connectionConfig=" + connectionConfig + ", poolConfig=" + poolConfig + ", qualifier=" + qualifier + '}'; } PoolDescriptor(String server, String jdbcUrl, Properties connectionConfig, Properties poolConfig, String qualifier); String getServer(); String getJdbcUrl(); String getUser(); String getPassword(); Properties getConnectionConfig(); Properties getPoolConfig(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }