- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 128 for test_equals1 (0.08 sec)
-
android/guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java
} }); } public void testEquals() { ListMultimap<Integer, String> map1 = ImmutableListMultimap.of(1, "one"); ListMultimap<Integer, String> map2 = ImmutableListMultimap.of(2, "two"); new EqualsTester() .addEqualityGroup(map1, wrap(map1), wrap(map1)) .addEqualityGroup(map2, wrap(map2)) .testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 20:09:59 UTC 2024 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java
} }); } public void testEquals() { ListMultimap<Integer, String> map1 = ImmutableListMultimap.of(1, "one"); ListMultimap<Integer, String> map2 = ImmutableListMultimap.of(2, "two"); new EqualsTester() .addEqualityGroup(map1, wrap(map1), wrap(map1)) .addEqualityGroup(map2, wrap(map2)) .testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 20:09:59 UTC 2024 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingSetMultimapTest.java
} }); } public void testEquals() { SetMultimap<Integer, String> map1 = ImmutableSetMultimap.of(1, "one"); SetMultimap<Integer, String> map2 = ImmutableSetMultimap.of(2, "two"); new EqualsTester() .addEqualityGroup(map1, wrap(map1), wrap(map1)) .addEqualityGroup(map2, wrap(map2)) .testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 20:09:59 UTC 2024 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingSortedSetMultimapTest.java
}); } public void testEquals() { SortedSetMultimap<Integer, String> map1 = TreeMultimap.create(ImmutableMultimap.of(1, "one")); SortedSetMultimap<Integer, String> map2 = TreeMultimap.create(ImmutableMultimap.of(2, "two")); new EqualsTester() .addEqualityGroup(map1, wrap(map1), wrap(map1)) .addEqualityGroup(map2, wrap(map2)) .testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 20:09:59 UTC 2024 - 2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/EqualsTester.java
import org.checkerframework.checker.nullness.qual.Nullable; /** * Tester for equals() and hashCode() methods of a class. * * <p>The simplest use case is: * * <pre> * new EqualsTester().addEqualityGroup(foo).testEquals(); * </pre> * * <p>This tests {@code foo.equals(foo)}, {@code foo.equals(null)}, and a few other operations. * * <p>For more extensive testing, add multiple equality groups. Each group should contain objects
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/eventbus/SubscriberTest.java
Subscriber subscriber = Subscriber.create(bus, this, method); assertThrows(JudgmentError.class, () -> subscriber.invokeSubscriberMethod(FIXTURE_ARGUMENT)); } public void testEquals() throws Exception { Method charAt = String.class.getMethod("charAt", int.class); Method concat = String.class.getMethod("concat", String.class); new EqualsTester() .addEqualityGroup(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSetTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 15:49:06 UTC 2023 - 5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSortedSetTest.java
} }); } public void testEquals() { SortedSet<String> set1 = ImmutableSortedSet.of("one"); SortedSet<String> set2 = ImmutableSortedSet.of("two"); new EqualsTester() .addEqualityGroup(set1, wrap(set1), wrap(set1)) .addEqualityGroup(set2, wrap(set2)) .testEquals(); } private static <T> SortedSet<T> wrap(final SortedSet<T> delegate) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingSetTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 15:49:06 UTC 2023 - 5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ConverterTest.java
new EqualsTester() .addEqualityGroup(STR_TO_LONG, STR_TO_LONG.reverse().reverse()) .addEqualityGroup(STR_TO_LONG.reverse(), STR_TO_LONG.reverse()) .testEquals(); } public void testReverseReverse() { Converter<String, Long> converter = STR_TO_LONG; assertEquals(converter, converter.reverse().reverse()); } public void testApply() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 01 16:09:28 UTC 2024 - 8K bytes - Viewed (0)