Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testMemoizeWithExpiration_durationNegative (0.15 sec)

  1. android/guava-tests/test/com/google/common/base/SuppliersTest.java

            IllegalArgumentException.class,
            () -> Suppliers.memoizeWithExpiration(() -> "", -1, MILLISECONDS));
      }
    
      @J2ktIncompatible // Duration
      @GwtIncompatible // Duration
      public void testMemoizeWithExpiration_durationNegative() throws InterruptedException {
        assertThrows(
            IllegalArgumentException.class,
            () -> Suppliers.memoizeWithExpiration(() -> "", Duration.ZERO));
    
        assertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SuppliersTest.java

            IllegalArgumentException.class,
            () -> Suppliers.memoizeWithExpiration(() -> "", -1, MILLISECONDS));
      }
    
      @J2ktIncompatible // Duration
      @GwtIncompatible // Duration
      public void testMemoizeWithExpiration_durationNegative() throws InterruptedException {
        assertThrows(
            IllegalArgumentException.class,
            () -> Suppliers.memoizeWithExpiration(() -> "", Duration.ZERO));
    
        assertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top