@Before public void setUp() { sendChannelConfig = mockContext.mock(SocketChannelConfig.class, "sendChannelConfig"); pollChannelConfig = mockContext.mock(SocketChannelConfig.class, "pollChannelConfig"); config = new HttpTunnelClientChannelConfig(sendChannelConfig, pollChannelConfig); }
HttpTunnelClientChannelConfig(SocketChannelConfig sendChannelConfig, SocketChannelConfig pollChannelConfig) { this.sendChannelConfig = sendChannelConfig; this.pollChannelConfig = pollChannelConfig; userAgent = System.getProperty(PROP_UserAgent, DEFAULT_USER_AGENT); }
@Override public SocketChannelConfig getConfig() { return config; }