Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testCopyTo_outputStream (0.21 sec)

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

        } finally {
          in.close();
        }
      }
    
      public void testRead() throws IOException {
        byte[] readBytes = source.read();
        assertExpectedBytes(readBytes);
      }
    
      public void testCopyTo_outputStream() throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        source.copyTo(out);
        assertExpectedBytes(out.toByteArray());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/ByteSourceTester.java

        } finally {
          in.close();
        }
      }
    
      public void testRead() throws IOException {
        byte[] readBytes = source.read();
        assertExpectedBytes(readBytes);
      }
    
      public void testCopyTo_outputStream() throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        source.copyTo(out);
        assertExpectedBytes(out.toByteArray());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        // test that we can get the size even if available() always returns zero
        assertEquals(bytes.length, new TestByteSource(bytes, AVAILABLE_ALWAYS_ZERO).size());
      }
    
      public void testCopyTo_outputStream() throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
    
        assertEquals(bytes.length, source.copyTo(out));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ByteSourceTest.java

        // test that we can get the size even if available() always returns zero
        assertEquals(bytes.length, new TestByteSource(bytes, AVAILABLE_ALWAYS_ZERO).size());
      }
    
      public void testCopyTo_outputStream() throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
    
        assertEquals(bytes.length, source.copyTo(out));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
Back to top