Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestListener (0.08 sec)

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

      }
    
      public void testRemovalListener_setTwice() {
        RemovalListener<Object, Object> testListener = nullRemovalListener();
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().removalListener(testListener);
        assertThrows(IllegalStateException.class, () -> builder.removalListener(testListener));
      }
    
      public void testValuesIsNotASet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        }
      }
    
      public void testSetRemovalListener() {
        RemovalListener<Object, Object> testListener = TestingRemovalListeners.nullRemovalListener();
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().removalListener(testListener));
        assertSame(testListener, map.removalListener);
      }
    
      public void testSetTicker() {
        Ticker testTicker =
            new Ticker() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        }
      }
    
      public void testSetRemovalListener() {
        RemovalListener<Object, Object> testListener = TestingRemovalListeners.nullRemovalListener();
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().removalListener(testListener));
        assertSame(testListener, map.removalListener);
      }
    
      public void testSetTicker() {
        Ticker testTicker =
            new Ticker() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
Back to top