INT-2936 Polishing

Fix Test in 2.2.x branch.
This commit is contained in:
Gary Russell
2013-02-25 14:11:23 -05:00
parent 1cb6e100fe
commit 1d63733937

View File

@@ -76,7 +76,7 @@ public class TcpNetConnectionTests {
SocketChannel socketChannel = mock(SocketChannel.class);
Socket socket = mock(Socket.class);
when(socketChannel.socket()).thenReturn(socket);
TcpNioConnection connection = new TcpNioConnection(socketChannel, true, false, null, null);
TcpNioConnection connection = new TcpNioConnection(socketChannel, true, false);
ChannelInputStream inputStream = TestUtils.getPropertyValue(connection, "channelInputStream", ChannelInputStream.class);
inputStream.write(new byte[] {(byte) 0x80}, 1);
assertEquals(0x80, inputStream.read());