- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for shouldThrow (0.12 sec)
-
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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4K bytes - Viewed (0) -
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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 37.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 37.9K bytes - Viewed (0)