- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testSetExceptionNull (0.11 seconds)
-
guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
public void testSetNull() throws Exception { future.set(null); assertSuccessful(future, null); } @SuppressWarnings("nullness") // test of a bogus call public void testSetExceptionNull() throws Exception { assertThrows(NullPointerException.class, () -> future.setException(null)); assertThat(future.isDone()).isFalse(); assertThat(future.set(1)).isTrue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 16.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
public void testSetNull() throws Exception { future.set(null); assertSuccessful(future, null); } @SuppressWarnings("nullness") // test of a bogus call public void testSetExceptionNull() throws Exception { assertThrows(NullPointerException.class, () -> future.setException(null)); assertThat(future.isDone()).isFalse(); assertThat(future.set(1)).isTrue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 16.3K bytes - Click Count (0)