Skip to content

Commit

Permalink
[hotfix] Removed deprecated and commented code in SourceFunctionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanEwen committed Mar 1, 2016
1 parent ff80dc0 commit 8a50524
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,4 @@ public void generateSequenceTest() throws Exception {
7));
assertEquals(expectedList, actualList);
}

// TODO: does not work because we cannot set the internal socket anymore
// @Test
// public void socketTextStreamTest() throws Exception {
// List<String> expectedList = Arrays.asList("a", "b", "c");
// List<String> actualList = new ArrayList<String>();
//
// byte[] data = { 'a', '\n', 'b', '\n', 'c', '\n' };
//
// Socket socket = mock(Socket.class);
// when(socket.getInputStream()).thenReturn(new ByteArrayInputStream(data));
// when(socket.isClosed()).thenReturn(false);
// when(socket.isConnected()).thenReturn(true);
//
// SocketTextStreamFunction source = new SocketTextStreamFunction("", 0, '\n', 0);
// source.open(new Configuration());
// while (!source.reachedEnd()) {
// actualList.add(source.next());
// }
// assertEquals(expectedList, actualList);
// }
}

0 comments on commit 8a50524

Please sign in to comment.