@Test public void testGetEndpointReturnsSameInstanceEveryTimeWhenCreatedWithInetSocketAddress() { TCPClientSettings settings = new TCPClientSettings(Mockito.mock(InetSocketAddress.class), 0, null, null); assertTrue(settings.getEndpoint() == settings.getEndpoint()); }
public InetSocketAddress getEndpoint() { return endpoint == null ? new InetSocketAddress(uri.getHost(), uri.getPort()) : endpoint; }
TCPClientSettings { public InetSocketAddress getEndpoint() { return endpoint == null ? new InetSocketAddress(uri.getHost(), uri.getPort()) : endpoint; } }
TCPClientSettings { public InetSocketAddress getEndpoint() { return endpoint == null ? new InetSocketAddress(uri.getHost(), uri.getPort()) : endpoint; } TCPClientSettings(InetSocketAddress endpoint, int tcpTransactionTimeoutSec, ServiceCredentials serviceCredentials);  TCPClientSettings(InetSocketAddress endpoint, int tcpTransactionTimeoutSec, ServiceCredentials serviceCredentials, PduVersion pduVersion);  TCPClientSettings(String uri, int tcpTransactionTimeoutSec, ServiceCredentials serviceCredentials, PduVersion pduVersion); }
TCPClientSettings { public InetSocketAddress getEndpoint() { return endpoint == null ? new InetSocketAddress(uri.getHost(), uri.getPort()) : endpoint; } TCPClientSettings(InetSocketAddress endpoint, int tcpTransactionTimeoutSec, ServiceCredentials serviceCredentials);  TCPClientSettings(InetSocketAddress endpoint, int tcpTransactionTimeoutSec, ServiceCredentials serviceCredentials, PduVersion pduVersion);  TCPClientSettings(String uri, int tcpTransactionTimeoutSec, ServiceCredentials serviceCredentials, PduVersion pduVersion); InetSocketAddress getEndpoint(); int getTcpTransactionTimeoutSec(); ServiceCredentials getServiceCredentials(); PduVersion getPduVersion(); }
TCPClientSettings { public InetSocketAddress getEndpoint() { return endpoint == null ? new InetSocketAddress(uri.getHost(), uri.getPort()) : endpoint; } TCPClientSettings(InetSocketAddress endpoint, int tcpTransactionTimeoutSec, ServiceCredentials serviceCredentials);  TCPClientSettings(InetSocketAddress endpoint, int tcpTransactionTimeoutSec, ServiceCredentials serviceCredentials, PduVersion pduVersion);  TCPClientSettings(String uri, int tcpTransactionTimeoutSec, ServiceCredentials serviceCredentials, PduVersion pduVersion); InetSocketAddress getEndpoint(); int getTcpTransactionTimeoutSec(); ServiceCredentials getServiceCredentials(); PduVersion getPduVersion();  }