Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for testReadLines (0.27 sec)

  1. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      }
    
      public void testReadLines_toList() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
        assertEquals(ImmutableList.of("foo", "bar", "baz", "something"), lines.readLines());
        assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
      }
    
      public void testReadLines_withProcessor() throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CharSourceTester.java

        if (expectedLines.isEmpty()) {
          assertNull(source.readFirstLine());
        } else {
          assertEquals(expectedLines.get(0), source.readFirstLine());
        }
      }
    
      public void testReadLines_toList() throws IOException {
        assertExpectedLines(source.readLines());
      }
    
      public void testIsEmpty() throws IOException {
        assertEquals(expected.isEmpty(), source.isEmpty());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        if (expectedLines.isEmpty()) {
          assertNull(source.readFirstLine());
        } else {
          assertEquals(expectedLines.get(0), source.readFirstLine());
        }
      }
    
      public void testReadLines_toList() throws IOException {
        assertExpectedLines(source.readLines());
      }
    
      public void testIsEmpty() throws IOException {
        assertEquals(expected.isEmpty(), source.isEmpty());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 6.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CharSourceTest.java

      }
    
      public void testReadLines_toList() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
        assertEquals(ImmutableList.of("foo", "bar", "baz", "something"), lines.readLines());
        assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
      }
    
      public void testReadLines_withProcessor() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ResourcesTest.java

      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, Charsets.UTF_8));
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/ResourcesTest.java

      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, Charsets.UTF_8));
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(TEXT, CharStreams.toString(new StringReader(TEXT)));
      }
    
      public void testReadLines() throws IOException {
        List<String> lines = CharStreams.readLines(new StringReader("a\nb\nc"));
        assertEquals(ImmutableList.of("a", "b", "c"), lines);
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        String text = "a\nb\nc";
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(TEXT, CharStreams.toString(new StringReader(TEXT)));
      }
    
      public void testReadLines() throws IOException {
        List<String> lines = CharStreams.readLines(new StringReader("a\nb\nc"));
        assertEquals(ImmutableList.of("a", "b", "c"), lines);
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        String text = "a\nb\nc";
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(
            ImmutableList.of("hello", "", " world  ", ""), Files.readLines(temp, Charsets.UTF_8));
    
        assertTrue(temp.delete());
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        File temp = createTempFile();
        LineProcessor<List<String>> collect =
            new LineProcessor<List<String>>() {
              List<String> collector = new ArrayList<>();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(
            ImmutableList.of("hello", "", " world  ", ""), Files.readLines(temp, Charsets.UTF_8));
    
        assertTrue(temp.delete());
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        File temp = createTempFile();
        LineProcessor<List<String>> collect =
            new LineProcessor<List<String>>() {
              List<String> collector = new ArrayList<>();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
Back to top