Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 446 for assertFalse (0.1 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java

        int oldSize = getNumElements();
    
        Collection<V> result = multimap().asMap().get(k0());
        assertTrue(result.remove(v0()));
    
        assertFalse(multimap().containsKey(k0()));
        assertFalse(multimap().containsEntry(k0(), v0()));
        assertEmpty(result);
    
        assertTrue(result.add(v1()));
        assertTrue(result.add(v2()));
    
        assertContentsAnyOrder(result, v1(), v2());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

        try {
          assertFalse(
              "remove(null) should return false or throw NullPointerException",
              collection.remove(null));
        } catch (NullPointerException tolerated) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_QUERIES})
      public void testRemove_nullAllowed() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_supportedWrongValue() {
        assertFalse(getMap().replace(k0(), v3(), v4()));
        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testReplaceEntry_supportedAbsentKey() {
        assertFalse(getMap().replace(k3(), v3(), v4()));
        expectUnchanged();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_supportedWrongValue() {
        assertFalse(getMap().replace(k0(), v3(), v4()));
        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testReplaceEntry_supportedAbsentKey() {
        assertFalse(getMap().replace(k3(), v3(), v4()));
        expectUnchanged();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheManualTest.java

        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
        assertNull(cache.asMap().get(one));
        assertFalse(cache.asMap().containsKey(one));
        assertFalse(cache.asMap().containsValue(two));
    
        assertNull(cache.getIfPresent(two));
        stats = cache.stats();
        assertEquals(2, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertTrue(asMap.containsKey("foo"));
        assertFalse(asMap.containsKey("cow"));
    
        Set<Entry<String, Collection<Integer>>> entries = asMap.entrySet();
        assertFalse(entries.contains((Object) 4.5));
        assertFalse(entries.remove((Object) 4.5));
        assertFalse(entries.contains(Maps.immutableEntry("foo", singletonList(1))));
        assertFalse(entries.remove(Maps.immutableEntry("foo", singletonList(1))));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        @Override
        protected void startUp() {
          assertFalse(startUpCalled);
          assertFalse(runCalled);
          assertFalse(shutDownCalled);
          startUpCalled = true;
          assertEquals(State.STARTING, state());
        }
    
        @Override
        protected void run() {
          assertTrue(startUpCalled);
          assertFalse(runCalled);
          assertFalse(shutDownCalled);
          runCalled = true;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertEquals(set, Sets.newTreeSet(asList("a", "b", "c")));
        assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set);
        assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d"))));
        assertFalse(Sets.newTreeSet(asList("a", "b", "d")).equals(set));
        assertFalse(set.equals(newHashSet(4, 5, 6)));
        assertFalse(newHashSet(4, 5, 6).equals(set));
      }
    
      public void testEquals_bothExplicitOrdering() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // initial capacity / concurrency level
        assertEquals(16 / map.segments.length, map.segments[0].table.length());
    
        assertFalse(map.evictsBySize());
        assertFalse(map.expires());
        assertFalse(map.expiresAfterWrite());
        assertFalse(map.expiresAfterAccess());
        assertFalse(map.refreshes());
      }
    
      public void testSetKeyEquivalence() {
        Equivalence<Object> testEquivalence =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

        try {
          assertFalse(
              "remove(null) should return false or throw NullPointerException",
              collection.remove(null));
        } catch (NullPointerException tolerated) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_QUERIES})
      public void testRemove_nullAllowed() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top