Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testWriter (0.07 sec)

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

    import java.io.IOException;
    import java.io.OutputStreamWriter;
    
    /** @author Colin Decker */
    public class TestWriter extends FilterWriter {
    
      private final TestOutputStream out;
    
      public TestWriter(TestOption... options) throws IOException {
        this(new TestOutputStream(ByteStreams.nullOutputStream(), options));
      }
    
      public TestWriter(TestOutputStream out) {
        super(new OutputStreamWriter(checkNotNull(out), UTF_8));
        this.out = out;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java

    public class UncaughtExceptionHandlersTest extends TestCase {
    
      private Runtime runtimeMock;
    
      @Override
      protected void setUp() {
        runtimeMock = mock(Runtime.class);
      }
    
      public void testExiter() {
        new Exiter(runtimeMock).uncaughtException(new Thread(), new Exception());
        verify(runtimeMock).exit(1);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

        try {
          ByteStreams.copy(new ByteArrayInputStream(data), out);
        } finally {
          out.close();
        }
    
        assertContainsExpectedBytes();
      }
    
      public void testWrite() throws IOException {
        sink.write(data);
    
        assertContainsExpectedBytes();
      }
    
      public void testWriteFrom_inputStream() throws IOException {
        sink.writeFrom(new ByteArrayInputStream(data));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ByteSinkTester.java

        try {
          ByteStreams.copy(new ByteArrayInputStream(data), out);
        } finally {
          out.close();
        }
    
        assertContainsExpectedBytes();
      }
    
      public void testWrite() throws IOException {
        sink.write(data);
    
        assertContainsExpectedBytes();
      }
    
      public void testWriteFrom_inputStream() throws IOException {
        sink.writeFrom(new ByteArrayInputStream(data));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top