Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 796 for watch (0.15 sec)

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

          queue.enqueue(incrementingEvent(counters, listener, 4));
          queue.enqueue(countDownEvent(latch));
          assertEquals(0, counters.size());
          queue.dispatch();
          latch.await();
          assertEquals(multiset(listener, 4), counters);
        } finally {
          service.shutdown();
        }
      }
    
      public void testEnqueueAndDispatch_multithreaded_withThrowingRunnable()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/VerifyTest.java

        try {
          verify(false);
          fail();
        } catch (VerifyException expected) {
        }
      }
    
      public void testVerify_simpleMessage_success() {
        verify(true, "message");
      }
    
      public void testVerify_simpleMessage_failure() {
        try {
          verify(false, "message");
          fail();
        } catch (VerifyException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("message");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

          fail("addAll(n, null) should throw");
        } catch (NullPointerException expected) {
        }
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAllAtIndex_negative() {
        try {
          getList().addAll(-1, MinimalCollection.of(e3()));
          fail("addAll(-1, e) should throw");
        } catch (IndexOutOfBoundsException expected) {
        }
        expectUnchanged();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

        checkNotNull(callable);
        checkNotNull(timeoutUnit);
        try {
          return callable.call();
        } catch (RuntimeException e) {
          throw new UncheckedExecutionException(e);
        } catch (Exception e) {
          restoreInterruptIfIsInterruptedException(e);
          throw new ExecutionException(e);
        } catch (Error e) {
          throw new ExecutionError(e);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractImmutableTableTest.java

          try {
            testInstance.clear();
            fail();
          } catch (UnsupportedOperationException e) {
            // success
          }
        }
      }
    
      public final void testPut() {
        for (Table<Character, Integer, String> testInstance : getTestInstances()) {
          try {
            testInstance.put('a', 1, "blah");
            fail();
          } catch (UnsupportedOperationException e) {
            // success
          }
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        // thread because the task will block on the task latch after unblocking
        // the run latch.
        exec.execute(task);
        runLatch.await();
        assertEquals(1, listenerLatch.getCount());
        assertFalse(task.isDone());
        assertFalse(task.isCancelled());
    
        // Finish the task by unblocking the task latch.  Then wait for the
        // listener to be called by blocking on the listener latch.
        taskLatch.countDown();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      public void testNullListener() {
        try {
          future.addListener(null, directExecutor());
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testNullExecutor() {
        try {
          future.addListener(doNothing(), null);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testNullTimeUnit() throws Exception {
        future.set(1);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Throwables.java

       * declaredType}. Example usage:
       *
       * <pre>
       * try {
       *   someMethodThatCouldThrowAnything();
       * } catch (IKnowWhatToDoWithThisException e) {
       *   handle(e);
       * } catch (Throwable t) {
       *   Throwables.propagateIfInstanceOf(t, IOException.class);
       *   Throwables.propagateIfInstanceOf(t, SQLException.class);
       *   throw Throwables.propagate(t);
       * }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Throwables.java

       * declaredType}. Example usage:
       *
       * <pre>
       * try {
       *   someMethodThatCouldThrowAnything();
       * } catch (IKnowWhatToDoWithThisException e) {
       *   handle(e);
       * } catch (Throwable t) {
       *   Throwables.propagateIfInstanceOf(t, IOException.class);
       *   Throwables.propagateIfInstanceOf(t, SQLException.class);
       *   throw Throwables.propagate(t);
       * }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

      public void testAddAll_unsupportedNothing() {
        try {
          assertFalse(
              "addAll(nothing) should return false or throw", collection.addAll(emptyCollection()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddAll_supportedNonePresent() {
        assertTrue(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top