Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ArbitraryInstances (0.1 sec)

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

     *
     * @author Kevin Bourrillion
     * @author Ben Yu
     * @since 12.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class ArbitraryInstances {
    
      private static final Ordering<Field> BY_FIELD_NAME =
          new Ordering<Field>() {
            @Override
            public int compare(Field left, Field right) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

     *
     * @author Kevin Bourrillion
     * @author Ben Yu
     * @since 12.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class ArbitraryInstances {
    
      private static final Ordering<Field> BY_FIELD_NAME =
          new Ordering<Field>() {
            @Override
            public int compare(Field left, Field right) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertTrue(ArbitraryInstances.get(NavigableMap.class).isEmpty());
        assertTrue(ArbitraryInstances.get(LinkedList.class).isEmpty());
        assertTrue(ArbitraryInstances.get(Deque.class).isEmpty());
        assertTrue(ArbitraryInstances.get(Queue.class).isEmpty());
        assertTrue(ArbitraryInstances.get(PriorityQueue.class).isEmpty());
        assertTrue(ArbitraryInstances.get(BitSet.class).isEmpty());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/PreconditionsTest.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Lists;
    import com.google.common.testing.ArbitraryInstances;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.List;
    import junit.framework.AssertionFailedError;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        }
        return params;
      }
    
      private static final ImmutableSet<String> NOT_WORKING_ON_MOCKS =
          ImmutableSet.of("latestPermitAgeSec", "setRate", "getAvailablePermits");
    
      // We would use ArbitraryInstances, but it returns 0, invalid for many RateLimiter methods.
      private static final ImmutableClassToInstanceMap<Object> PARAMETER_VALUES =
          ImmutableClassToInstanceMap.builder()
              .put(int.class, 1)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        }
        return params;
      }
    
      private static final ImmutableSet<String> NOT_WORKING_ON_MOCKS =
          ImmutableSet.of("latestPermitAgeSec", "setRate", "getAvailablePermits");
    
      // We would use ArbitraryInstances, but it returns 0, invalid for many RateLimiter methods.
      private static final ImmutableClassToInstanceMap<Object> PARAMETER_VALUES =
          ImmutableClassToInstanceMap.builder()
              .put(int.class, 1)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top