Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

          assertEquals(
              ImmutableSet.of(immutableEntry(key1, value1), immutableEntry(key2, value2)),
              cache.asMap().entrySet());
        }
      }
    
      public void testInvalidate() {
        for (LoadingCache<Key, String> cache : caches()) {
          Key key1 = new Key(1);
          String value1 = key1.toString();
          Key key2 = new Key(2);
          String value2 = key2.toString();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        assertEquals(Integer.valueOf(20), cache.getIfPresent(30));
        assertEquals(Integer.valueOf(70), cache.getIfPresent(60));
        assertEquals(Integer.valueOf(5), cache.getIfPresent(5));
      }
    
      public void testInvalidate() {
        Cache<Integer, Integer> cache = CacheBuilder.newBuilder().build();
    
        cache.put(654, 2675);
        cache.put(2456, 56);
        cache.put(2, 15);
    
        cache.invalidate(654);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. compat/maven-settings-builder/src/test/java/org/apache/maven/settings/validation/DefaultSettingsValidatorTest.java

        }
    
        private void assertContains(String msg, String substring) {
            assertTrue(msg.contains(substring), "\"" + substring + "\" was not found in: " + msg);
        }
    
        @Test
        void testValidate() {
            Settings model = new Settings();
            Profile prof = new Profile();
            prof.setId("xxx");
            model.addProfile(prof);
            SimpleProblemCollector problems = new SimpleProblemCollector();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top