Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testCloseQuietly_inputStreamWithEatenException (0.26 sec)

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

        // make sure that the exception is thrown if 'swallowException' is false
        // when the mock does throw an exception.
        setupCloseable(true);
        doClose(mockCloseable, false);
      }
    
      public void testCloseQuietly_inputStreamWithEatenException() throws IOException {
        TestInputStream in =
            new TestInputStream(new ByteArrayInputStream(new byte[1]), TestOption.CLOSE_THROWS);
        Closeables.closeQuietly(in);
        assertTrue(in.closed());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CloseablesTest.java

        // make sure that the exception is thrown if 'swallowException' is false
        // when the mock does throw an exception.
        setupCloseable(true);
        doClose(mockCloseable, false);
      }
    
      public void testCloseQuietly_inputStreamWithEatenException() throws IOException {
        TestInputStream in =
            new TestInputStream(new ByteArrayInputStream(new byte[1]), TestOption.CLOSE_THROWS);
        Closeables.closeQuietly(in);
        assertTrue(in.closed());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
Back to top