Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for testudo (0.23 sec)

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

    public class CollectionAddTester<E> extends AbstractCollectionTester<E> {
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAdd_supportedNotPresent() {
        assertTrue("add(notPresent) should return true", collection.add(e3()));
        expectAdded(e3());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAdd_unsupportedNotPresent() {
        try {
          collection.add(e3());
          fail("add(notPresent) should throw");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java

       */
      public void testAdd_unsupportedPresent() {
        try {
          getList().add(e0());
          fail("add(present) should throw");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      @CollectionFeature.Require(value = {SUPPORTS_ADD, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedNullPresent() {
    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)
  3. guava-testlib/src/com/google/common/collect/testing/testers/SetAddTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedPresent() {
        assertFalse("add(present) should return false", getSet().add(e0()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(value = {SUPPORTS_ADD, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedNullPresent() {
        E[] array = createArrayWithNullElement();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertFalse(invokable.isAnnotationPresent(Tested.class));
      }
    
      @Retention(RetentionPolicy.RUNTIME)
      private @interface Tested {}
    
      private abstract static class A {
        @Tested private boolean privateField;
        @Tested int packagePrivateField;
        @Tested protected int protectedField;
        @Tested public String publicField;
        @Tested private static Iterable<String> staticField;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        assertEquals(0, multiset.count(KEY));
      }
    
      public void testAdd_zero() {
        final int INITIAL_COUNT = 32;
    
        when(backingMap.get(KEY)).thenReturn(new AtomicInteger(INITIAL_COUNT));
        assertEquals(INITIAL_COUNT, multiset.add(KEY, 0));
      }
    
      public void testAdd_firstFewWithSuccess() {
        final int COUNT = 400;
    
        when(backingMap.get(KEY)).thenReturn(null);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Predicates.java

       * Returns a predicate that evaluates to {@code true} if the object reference being tested is
       * null.
       */
      @GwtCompatible(serializable = true)
      public static <T extends @Nullable Object> Predicate<T> isNull() {
        return ObjectPredicate.IS_NULL.withNarrowedType();
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the object reference being tested is not
       * null.
       */
      @GwtCompatible(serializable = true)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

    import java.util.SortedSet;
    import org.junit.Ignore;
    
    /**
     * Testers for {@link SortedSetMultimap#asMap}.
     *
     * @author Louis Wasserman
     * @param <K> The key type of the tested multimap.
     * @param <V> The value type of the tested multimap.
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class SortedSetMultimapAsMapTester<K, V>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LongMathTest.java

            LongMath.mod(x, 0);
            fail("Expected AE");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // TODO
      public void testMod() {
        for (long x : ALL_LONG_CANDIDATES) {
          for (long m : POSITIVE_LONG_CANDIDATES) {
            assertEquals(valueOf(x).mod(valueOf(m)).longValue(), LongMath.mod(x, m));
          }
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ForwardingObject.java

     * object being tested for equality to the custom interface. {@code ForwardingObject} implements no
     * such custom interfaces directly; they are implemented only in subclasses. Therefore, forwarding
     * {@code equals} would break symmetry, as the forwarding object might consider itself equal to the
     * object being tested, but the reverse could not be true. This behavior is consistent with the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/HashingTest.java

     * tests to reference them from there.
     *
     * @author Dimitris Andreou
     * @author Kurt Alfred Kluever
     */
    public class HashingTest extends TestCase {
      public void testMd5() {
        HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4);
        HashTestUtils.checkNo2BitCharacteristics(Hashing.md5());
        HashTestUtils.checkNoFunnels(Hashing.md5());
        HashTestUtils.assertInvariants(Hashing.md5());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
Back to top