Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,066 for should (0.28 sec)

  1. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        assertEquals("Should be able to peek() at first element", "A", peekingIterator.peek());
        assertEquals(
            "Should be able to peek() first element multiple times", "A", peekingIterator.peek());
        assertEquals(
            "next() should still return first element after peeking", "A", peekingIterator.next());
    
        assertEquals("Should be able to peek() at middle element", "B", peekingIterator.peek());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

        assertSame(
            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
        expectArrayContentsAnyOrder(createSamplesArray(), array);
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testToArray_rightSizedArray_ordered() {
        E[] array = getSubjectGenerator().createArray(getNumElements());
        assertSame(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

        assertSame(
            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
        expectArrayContentsAnyOrder(createSamplesArray(), array);
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testToArray_rightSizedArray_ordered() {
        E[] array = getSubjectGenerator().createArray(getNumElements());
        assertSame(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java

        assertTrue("contains(present) should return true", collection.contains(e0()));
      }
    
      public void testContains_no() {
        assertFalse("contains(notPresent) should return false", collection.contains(e3()));
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_QUERIES)
      public void testContains_nullNotContainedButQueriesSupported() {
        assertFalse("contains(null) should return false", collection.contains(null));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/AbstractCache.java

        /**
         * Records cache hits. This should be called when a cache request returns a cached value.
         *
         * @param count the number of hits to record
         * @since 11.0
         */
        void recordHits(int count);
    
        /**
         * Records cache misses. This should be called when a cache request returns a value that was not
         * found in the cache. This method should be called by the loading thread, as well as by threads
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        lockB.unlock();
    
        // The opposite order should fail (Policies.THROW).
        PotentialDeadlockException firstException = null;
        lockB.lock();
        PotentialDeadlockException expected =
            assertThrows(PotentialDeadlockException.class, () -> lockA.lock());
        checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
        firstException = expected;
        // Second time should also fail, with a cached causal chain.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (1)
  7. guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

     * </ul>
     *
     * <p>Because of this situation, any public method accepting an iterable should invoke the {@code
     * iterator} method only once, and should be tested using this class. Exceptions to this rule should
     * be clearly documented.
     *
     * <p>Note that although your APIs should be liberal in what they accept, your methods which
     * <i>return</i> iterables should make every attempt to return ones of the robust variety.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Charsets.java

       *
       * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link
       * java.nio.charset.StandardCharsets#ISO_8859_1} instead.
       *
       */
      public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
    
      /**
       * UTF-8: eight-bit UCS Transformation Format.
       *
       * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java

      public void testOffer_supportedNotPresent() {
        assertTrue("offer(notPresent) should return true", getQueue().offer(e3()));
        expectAdded(e3());
      }
    
      @CollectionFeature.Require({SUPPORTS_ADD, ALLOWS_NULL_VALUES})
      public void testOffer_nullSupported() {
        assertTrue("offer(null) should return true", getQueue().offer(null));
        expectAdded((E) null);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/eventbus/AsyncEventBusTest.java

        assertTrue("No events should be delivered synchronously.", events.isEmpty());
    
        // Now we find the task in our Executor and explicitly activate it.
        List<Runnable> tasks = executor.getTasks();
        assertEquals("One event dispatch task should be queued.", 1, tasks.size());
    
        tasks.get(0).run();
    
        assertEquals("One event should be delivered.", 1, events.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
Back to top