- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 65 for testEquals (0.2 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java
getMultiset(), getSubjectGenerator().create(getSampleElements().toArray())) .testEquals(); } @CollectionSize.Require(absent = ZERO) public void testNotEqualsEmpty() { new EqualsTester() .addEqualityGroup(getMultiset()) .addEqualityGroup(getSubjectGenerator().create()) .testEquals(); } public void testHashCodeMatchesEntrySet() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 2.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
continue; } testSuccessfulForwarding(interfaceType, method, wrapperFunction); testExceptionPropagation(interfaceType, method, wrapperFunction); } if (testsEquals) { testEquals(interfaceType, wrapperFunction); } testToString(interfaceType, wrapperFunction); } /** Returns the most concrete public methods from {@code type}. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 9.1K bytes - Viewed (0) -
android/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-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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeParameterTest.java
} public <A, B> void testEquals() throws Exception { Method method = TypeParameterTest.class.getDeclaredMethod("testEquals"); new EqualsTester() .addEqualityGroup(new TypeParameter<A>() {}, new TypeParameter<A>() {}) .addEqualityGroup(new TypeParameter<B>() {}) .testEquals(); } public void testNullPointers() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 1.9K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java
@CollectionFeature.Require(SERIALIZABLE) public void testReserializeMap() { Map<K, V> deserialized = SerializableTester.reserialize(getMap()); new EqualsTester().addEqualityGroup(getMap(), deserialized).testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 1.6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilterTest.java
/** * Tests {@link AndArtifactFilter}. * */ class AndArtifactFilterTest { private ArtifactFilter newSubFilter() { return artifact -> false; } @Test void testEquals() { AndArtifactFilter filter1 = new AndArtifactFilter(); AndArtifactFilter filter2 = new AndArtifactFilter(Arrays.asList(newSubFilter())); assertFalse(filter1.equals(null));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EquivalenceTest.java
.addEquivalenceGroup("a") .test(); } public void testEquals() { new EqualsTester() .addEqualityGroup(Equivalence.equals(), Equivalence.equals()) .addEqualityGroup(Equivalence.identity(), Equivalence.identity()) .testEquals(); } @J2ktIncompatible @GwtIncompatible // NullPointerTester
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 6.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapEqualsTester.java
SetMultimap<K, V> multimap2 = getSubjectGenerator() .create(mapEntry(k0(), v1()), mapEntry(k0(), v0()), mapEntry(k0(), v4())); new EqualsTester().addEqualityGroup(multimap1, multimap2).testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 1.8K bytes - Viewed (0)