Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for ofHours (0.05 seconds)

  1. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testTimeToLive_setTwice_duration() {
        CacheBuilder<Object, Object> builder =
            CacheBuilder.newBuilder().expireAfterWrite(Duration.ofHours(1));
        assertThrows(IllegalStateException.class, () -> builder.expireAfterWrite(Duration.ofHours(1)));
      }
    
      public void testTimeToIdle_negative() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testTimeToLive_setTwice_duration() {
        CacheBuilder<Object, Object> builder =
            CacheBuilder.newBuilder().expireAfterWrite(Duration.ofHours(1));
        assertThrows(IllegalStateException.class, () -> builder.expireAfterWrite(Duration.ofHours(1)));
      }
    
      public void testTimeToIdle_negative() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        Condition condition = TestCondition.createAndSignalAfter(1000, MILLISECONDS);
        repeatedlyInterruptTestThread(tearDownStack);
    
        boolean returnedBeforeTimeout = awaitUninterruptibly(condition, Duration.ofHours(1));
    
        assertTrue(returnedBeforeTimeout);
        assertTimeNotPassed(stopwatch, LONG_DELAY_MS);
        assertInterrupted();
      }
    
      // Lock.tryLock() tests
      public void testTryLockTimeoutExceeded() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        Condition condition = TestCondition.createAndSignalAfter(1000, MILLISECONDS);
        repeatedlyInterruptTestThread(tearDownStack);
    
        boolean returnedBeforeTimeout = awaitUninterruptibly(condition, Duration.ofHours(1));
    
        assertTrue(returnedBeforeTimeout);
        assertTimeNotPassed(stopwatch, LONG_DELAY_MS);
        assertInterrupted();
      }
    
      // Lock.tryLock() tests
      public void testTryLockTimeoutExceeded() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
Back to Top