- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 110 for addEqualityGroup (0.22 sec)
-
guava-tests/test/com/google/common/hash/HashingTest.java
new EqualsTester() .addEqualityGroup(Hashing.concatenating(asList(Hashing.md5()))) .addEqualityGroup(Hashing.concatenating(asList(Hashing.murmur3_32()))) .addEqualityGroup( Hashing.concatenating(Hashing.md5(), Hashing.md5()), Hashing.concatenating(asList(Hashing.md5(), Hashing.md5()))) .addEqualityGroup(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 09 17:40:09 UTC 2024 - 26.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/RangeTest.java
new EqualsTester() .addEqualityGroup(Range.all()) .addEqualityGroup(Range.atLeast(1), Range.downTo(1, CLOSED)) .addEqualityGroup(Range.greaterThan(1), Range.downTo(1, OPEN)) .addEqualityGroup(Range.atMost(7), Range.upTo(7, CLOSED)) .addEqualityGroup(Range.lessThan(7), Range.upTo(7, OPEN)) .addEqualityGroup(Range.open(1, 7), Range.range(1, OPEN, 7, OPEN))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/RemovalNotificationTest.java
public void testEquals() { new EqualsTester() .addEqualityGroup( RemovalNotification.create("one", 1, RemovalCause.EXPLICIT), RemovalNotification.create("one", 1, RemovalCause.REPLACED)) .addEqualityGroup(RemovalNotification.create("1", 1, RemovalCause.EXPLICIT)) .addEqualityGroup(RemovalNotification.create("one", 2, RemovalCause.EXPLICIT)) .testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
} public void testEquals() { new EqualsTester() .addEqualityGroup(ImmutableMultiset.of(), ImmutableMultiset.of()) .addEqualityGroup(ImmutableMultiset.of(1), ImmutableMultiset.of(1)) .addEqualityGroup(ImmutableMultiset.of(1, 1), ImmutableMultiset.of(1, 1)) .addEqualityGroup(ImmutableMultiset.of(1, 2, 1), ImmutableMultiset.of(2, 1, 1)) .testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 20.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
new EqualsTester() .addEqualityGroup(A.constructor(), A.constructor()) .addEqualityGroup(A.method("privateMethod"), A.method("privateMethod")) .addEqualityGroup(A.method("publicFinalMethod")) .addEqualityGroup(Prepender.constructor(), Prepender.constructor()) .addEqualityGroup(Prepender.constructor(String.class, int.class))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
new EqualsTester() .addEqualityGroup(A.constructor(), A.constructor()) .addEqualityGroup(A.method("privateMethod"), A.method("privateMethod")) .addEqualityGroup(A.method("publicFinalMethod")) .addEqualityGroup(Prepender.constructor(), Prepender.constructor()) .addEqualityGroup(Prepender.constructor(String.class, int.class))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingMultimapTest.java
Multimap<Integer, String> map1 = ImmutableMultimap.of(1, "one"); Multimap<Integer, String> map2 = ImmutableMultimap.of(2, "two"); new EqualsTester() .addEqualityGroup(map1, wrap(map1), wrap(map1)) .addEqualityGroup(map2, wrap(map2)) .testEquals(); } private static <K, V> Multimap<K, V> wrap(final Multimap<K, V> delegate) { return new ForwardingMultimap<K, V>() { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 20:09:59 UTC 2024 - 1.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/EqualsTester.java
* that are equal to each other but unequal to the objects in any other group. For example: * * <pre> * new EqualsTester() * .addEqualityGroup(new User("page"), new User("page")) * .addEqualityGroup(new User("sergey")) * .testEquals(); * </pre> * * <p>This tests: * * <ul> * <li>comparing each object against itself returns true * <li>comparing each object against null returns false
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 31 19:11:50 UTC 2023 - 6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
new EqualsTester().addEqualityGroup(input, multimap).testEquals(); } public void testCopyOfEmpty() { ArrayListMultimap<String, Integer> input = ArrayListMultimap.create(); ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input); new EqualsTester().addEqualityGroup(input, multimap).testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java
Method concat = String.class.getMethod("concat", String.class); new EqualsTester() .addEqualityGroup( Subscriber.create(bus, "foo", charAt), Subscriber.create(bus, "foo", charAt)) .addEqualityGroup(Subscriber.create(bus, "bar", charAt)) .addEqualityGroup(Subscriber.create(bus, "foo", concat)) .testEquals(); } private Method getTestSubscriberMethod(String name) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.8K bytes - Viewed (0)