- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 107 for testEqual (0.03 sec)
-
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
} public void testGoodEquals() throws Exception { tester.testEquals(GoodEquals.class); } public void testEquals_interface() { tester.testEquals(AnInterface.class); } public void testEquals_abstractClass() { tester.testEquals(AnAbstractClass.class); } public void testEquals_enum() { tester.testEquals(OneConstantEnum.class); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 36.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* .setC(c) * .setD(d) * .build(); * } * } * * public void testEquals() { * new ClassSanityTester() * .forAllPublicStaticMethods(FooFactoryForTest.class) * .thatReturn(Foo.class) * .testEquals(); * } * } * </pre> *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingListTest.java
} }); } public void testEquals() { List<String> list1 = ImmutableList.of("one"); List<String> list2 = ImmutableList.of("two"); new EqualsTester() .addEqualityGroup(list1, wrap(list1), wrap(list1)) .addEqualityGroup(list2, wrap(list2)) .testEquals(); } private static <T> List<T> wrap(List<T> delegate) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java
} }); } public void testEquals() { SortedMultiset<String> set1 = ImmutableSortedMultiset.of("one"); SortedMultiset<String> set2 = ImmutableSortedMultiset.of("two"); new EqualsTester() .addEqualityGroup(set1, wrap(set1), wrap(set1)) .addEqualityGroup(set2, wrap(set2)) .testEquals(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/FunnelsTest.java
assertEquals( Funnels.stringFunnel(US_ASCII), SerializableTester.reserialize(Funnels.stringFunnel(US_ASCII))); } public void testEquals() { new EqualsTester() .addEqualityGroup(Funnels.byteArrayFunnel()) .addEqualityGroup(Funnels.integerFunnel()) .addEqualityGroup(Funnels.longFunnel())
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
.addEqualityGroup(g) .testEquals(); new EqualsTester() .addEqualityGroup(g, Functions.<@Nullable Object>constant(null)) .addEqualityGroup(Functions.constant("incorrect")) .addEqualityGroup(Functions.toStringFunction()) .addEqualityGroup(f) .testEquals(); } @J2ktIncompatible @GwtIncompatible // SerializableTester
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java
.testEquals(); } public void testEqualsFalse() { List<Entry<K, V>> targetEntries = new ArrayList<>(getSampleElements()); targetEntries.add(mapEntry(k0(), v3())); new EqualsTester() .addEqualityGroup(multimap()) .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray())) .testEquals(); } @CollectionSize.Require(absent = ZERO)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
* * <p>In all cases, if {@code C} needs custom logic for testing {@code equals()}, you can add an * explicit {@code testEquals()} test in the corresponding {@code CTest} class, and {@code C} will * be excluded from the automated {@code equals} test performed by this method. */ @Test public void testEquals() throws Exception { for (Class<?> classToTest :
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashingTest.java
.addEqualityGroup( Hashing.concatenating(Hashing.md5(), Hashing.murmur3_32()), Hashing.concatenating(asList(Hashing.md5(), Hashing.murmur3_32()))) .testEquals(); } public void testConcatenatingIterable_bits() { assertEquals( Hashing.md5().bits() + Hashing.md5().bits(), Hashing.concatenating(asList(Hashing.md5(), Hashing.md5())).bits());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 26.4K bytes - Viewed (2) -
guava-testlib/src/com/google/common/testing/EqualsTester.java
import org.jspecify.annotations.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 Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.1K bytes - Viewed (0)