@Override public int getLocalPort() { Connection target = this.target; // NOSONAR (close) if (target != null) { return target.getLocalPort(); } return 0; }
@Override public int getLocalPort() { Connection target = this.target; // NOSONAR (close) if (target != null) { return target.getLocalPort(); } return 0; }
@Override public int getLocalPort() { Connection target = this.target; if (target != null) { return target.getLocalPort(); } return 0; }
assertEquals("2", props.getProperty("idleConnections")); assertEquals("2", props.getProperty("idleConnectionsHighWater")); int c1Port = c1.getLocalPort(); int c2Port = c2.getLocalPort(); assertEquals("testConnectionCache0", props.getProperty("connectionName:" + c1Port)); assertEquals("testConnectionCache1", props.getProperty("connectionName:" + c2Port));