Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testTimeToLive_negative_duration (0.12 sec)

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

        assertThrows(IllegalArgumentException.class, () -> builder.expireAfterWrite(-1, SECONDS));
      }
    
      @GwtIncompatible // Duration
      public void testTimeToLive_negative_duration() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        assertThrows(
            IllegalArgumentException.class, () -> builder.expireAfterWrite(Duration.ofSeconds(-1)));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalArgumentException.class, () -> builder.expireAfterWrite(-1, SECONDS));
      }
    
      @GwtIncompatible // Duration
      public void testTimeToLive_negative_duration() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        assertThrows(
            IllegalArgumentException.class, () -> builder.expireAfterWrite(Duration.ofSeconds(-1)));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
Back to top