Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for shouldThrow (0.22 sec)

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

        Closeables.closeQuietly((Reader) null);
      }
    
      // Set up a closeable to expect to be closed, and optionally to throw an
      // exception.
      private void setupCloseable(boolean shouldThrow) throws IOException {
        mockCloseable = mock(Closeable.class);
        if (shouldThrow) {
          doThrow(new IOException("This should only appear in the logs. It should not be rethrown."))
              .when(mockCloseable)
              .close();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CloseablesTest.java

        Closeables.closeQuietly((Reader) null);
      }
    
      // Set up a closeable to expect to be closed, and optionally to throw an
      // exception.
      private void setupCloseable(boolean shouldThrow) throws IOException {
        mockCloseable = mock(Closeable.class);
        if (shouldThrow) {
          doThrow(new IOException("This should only appear in the logs. It should not be rethrown."))
              .when(mockCloseable)
              .close();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          try {
            q.element();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
          try {
            q.iterator().next();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
          try {
            q.remove();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          try {
            q.element();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
          try {
            q.iterator().next();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
          try {
            q.remove();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top