Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testTimeToLive_negative (0.22 sec)

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

      }
    
      public void testTimeToLive_negative() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        try {
          builder.expireAfterWrite(-1, SECONDS);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      @GwtIncompatible // java.time.Duration
      public void testTimeToLive_negative_duration() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalStateException.class, () -> builder2.softValues());
        assertThrows(IllegalStateException.class, () -> builder2.weakValues());
      }
    
      public void testTimeToLive_negative() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        try {
          builder.expireAfterWrite(-1, SECONDS);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
Back to top