Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NPETask (0.03 sec)

  1. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      public void testInvokeAnyImpl_noTaskCompletes() throws Exception {
        ListeningExecutorService e = newDirectExecutorService();
        List<Callable<String>> l = new ArrayList<>();
        l.add(new NPETask());
        try {
          invokeAnyImpl(e, l, false, 0, NANOSECONDS);
          fail();
        } catch (ExecutionException success) {
          assertThat(success).hasCauseThat().isInstanceOf(NullPointerException.class);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      public void testInvokeAnyImpl_noTaskCompletes() throws Exception {
        ListeningExecutorService e = newDirectExecutorService();
        List<Callable<String>> l = new ArrayList<>();
        l.add(new NPETask());
        try {
          invokeAnyImpl(e, l, false, 0, NANOSECONDS);
          fail();
        } catch (ExecutionException success) {
          assertThat(success).hasCauseThat().isInstanceOf(NullPointerException.class);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //             if (millisElapsedSince(startTime) > timeoutMillis)
      //                 throw new AssertionFailedError("timed out");
      //             Thread.yield();
      //         }
      //     }
    
      public static class NPETask implements Callable<String> {
        @Override
        public String call() {
          throw new NullPointerException();
        }
      }
    
      public static class CallableOne implements Callable<Integer> {
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 37.8K bytes
    - Viewed (0)
Back to top