Home | History | Annotate | Download | only in io

Lines Matching refs:lines

58   private static final String LINES = "foo\nbar\r\nbaz\rsomething";
112 TestCharSource lines = new TestCharSource(LINES);
113 assertEquals("foo", lines.readFirstLine());
114 assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
118 TestCharSource lines = new TestCharSource(LINES);
119 assertEquals(ImmutableList.of("foo", "bar", "baz", "something"), lines.readLines());
120 assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
124 TestCharSource lines = new TestCharSource(LINES);
125 List<String> list = lines.readLines(new LineProcessor<List<String>>() {
140 assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
144 TestCharSource lines = new TestCharSource(LINES);
145 List<String> list = lines.readLines(new LineProcessor<List<String>>() {
160 assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());