Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 446 for assertFalse (0.11 sec)

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

      public void testClear() {
        collection.clear();
        assertTrue("After clear(), a collection should be empty.", collection.isEmpty());
        assertEquals(0, collection.size());
        assertFalse(collection.iterator().hasNext());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testClear_unsupported() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        }
      }
    
      void expectRemoveZero(SortedMultiset<E> multiset, Entry<E> entry) {
        assertEquals(0, multiset.remove(entry.getElement(), entry.getCount()));
        assertFalse(multiset.remove(entry.getElement()));
        assertFalse(multiset.elementSet().remove(entry.getElement()));
      }
    
      void expectSetCountFailure(SortedMultiset<E> multiset, Entry<E> entry) {
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

     */
    package org.codelibs.fess.suggest;
    
    import static org.codelibs.opensearch.runner.OpenSearchRunner.newConfigs;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertFalse;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    import java.time.ZonedDateTime;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashMap;
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

        }
      }
    
      public void assertTimeout() throws Exception {
        // Verify that the listener does not get called in a reasonable amount of
        // time.
        Assert.assertFalse(countDownLatch.await(1L, SECONDS));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:12:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java

          assertTrue(Thread.holdsLock(mutex));
          return delegate.element();
        }
    
        @Override
        public Iterator<E> iterator() {
          // We explicitly don't lock for iterator()
          assertFalse(Thread.holdsLock(mutex));
          return delegate.iterator();
        }
    
        @Override
        public int size() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.size();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 20:50:58 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

        unfiltered.put("foo", 55556);
        unfiltered.put("badkey", 1);
        Multimap<String, Integer> filtered = filterValues(unfiltered, VALUE_PREDICATE);
        assertEquals(1, filtered.size());
        assertFalse(filtered.containsEntry("foo", 55556));
        assertTrue(filtered.containsEntry("badkey", 1));
      }
    
      public void testFilterFiltered() {
        Multimap<String, Integer> unfiltered = HashMultimap.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

      @CollectionSize.Require(SEVERAL)
      public void testLast() {
        assertEquals(c.getKey(), navigableMap.lastKey());
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testHeadMapExclusive() {
        assertFalse(navigableMap.headMap(a.getKey()).containsKey(a.getKey()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testTailMapInclusive() {
        assertTrue(navigableMap.tailMap(a.getKey()).containsKey(a.getKey()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java

      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testClear() {
        getMap().clear();
        assertTrue("After clear(), a map should be empty.", getMap().isEmpty());
        assertEquals(0, getMap().size());
        assertFalse(getMap().entrySet().iterator().hasNext());
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
      public void testClearConcurrentWithEntrySetIteration() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/MultiReaderTest.java

        assertTrue(joinedReader.ready());
        assertEquals('a', joinedReader.read());
        assertEquals('a', joinedReader.read());
        assertEquals(-1, joinedReader.read());
        assertFalse(joinedReader.ready());
      }
    
      public void testSimple() throws Exception {
        String testString = "abcdefgh";
        CharSource source = newCharSource(testString);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

        unfiltered.put("foo", 55556);
        unfiltered.put("badkey", 1);
        Multimap<String, Integer> filtered = filterValues(unfiltered, VALUE_PREDICATE);
        assertEquals(1, filtered.size());
        assertFalse(filtered.containsEntry("foo", 55556));
        assertTrue(filtered.containsEntry("badkey", 1));
      }
    
      public void testFilterFiltered() {
        Multimap<String, Integer> unfiltered = HashMultimap.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top