Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testTimeToLive_negative_duration (0.13 seconds)

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

        assertThrows(IllegalArgumentException.class, () -> builder.expireAfterWrite(-1, SECONDS));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Duration
      public void testTimeToLive_negative_duration() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        assertThrows(
            IllegalArgumentException.class, () -> builder.expireAfterWrite(Duration.ofSeconds(-1)));
      }
    
    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

        assertThrows(IllegalArgumentException.class, () -> builder.expireAfterWrite(-1, SECONDS));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Duration
      public void testTimeToLive_negative_duration() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        assertThrows(
            IllegalArgumentException.class, () -> builder.expireAfterWrite(Duration.ofSeconds(-1)));
      }
    
    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)
Back to Top