- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 69 for EqualsTester (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-testlib/src/com/google/common/testing/EqualsTester.java
@GwtCompatible @NullMarked public final class EqualsTester { private static final int REPETITIONS = 3; private final List<List<Object>> equalityGroups = new ArrayList<>(); private final RelationshipTester.ItemReporter itemReporter; /** Constructs an empty EqualsTester instance */ public EqualsTester() { this(/* itemReporter= */ Item::toString); } EqualsTester(RelationshipTester.ItemReporter itemReporter) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 6.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/EqualsTester.java
@GwtCompatible @NullMarked public final class EqualsTester { private static final int REPETITIONS = 3; private final List<List<Object>> equalityGroups = new ArrayList<>(); private final RelationshipTester.ItemReporter itemReporter; /** Constructs an empty EqualsTester instance */ public EqualsTester() { this(/* itemReporter= */ Item::toString); } EqualsTester(RelationshipTester.ItemReporter itemReporter) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 6.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
} public void testNot_equality() { new EqualsTester() .addEqualityGroup(Predicates.not(isOdd()), Predicates.not(isOdd())) .addEqualityGroup(Predicates.not(TRUE)) .addEqualityGroup(isOdd()) .testEquals(); } public void testNot_equalityForNotOfKnownValues() { new EqualsTester() .addEqualityGroup(TRUE, Predicates.alwaysTrue())
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 32.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
assertThat(g.apply(2)).isNull(); assertThat(g.apply(null)).isNull(); new EqualsTester() .addEqualityGroup(f, Functions.constant("correct")) .addEqualityGroup(Functions.constant("incorrect")) .addEqualityGroup(Functions.toStringFunction()) .addEqualityGroup(g) .testEquals(); new EqualsTester() .addEqualityGroup(g, Functions.<@Nullable Object>constant(null))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/EquivalenceTest.java
import com.google.common.annotations.J2ktIncompatible; import com.google.common.base.Equivalence.Wrapper; import com.google.common.collect.ImmutableList; import com.google.common.testing.EqualsTester; import com.google.common.testing.EquivalenceTester; import com.google.common.testing.NullPointerTester; import com.google.common.testing.SerializableTester; import junit.framework.TestCase;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
assertThat(g.apply(2)).isNull(); assertThat(g.apply(null)).isNull(); new EqualsTester() .addEqualityGroup(f, Functions.constant("correct")) .addEqualityGroup(Functions.constant("incorrect")) .addEqualityGroup(Functions.toStringFunction()) .addEqualityGroup(g) .testEquals(); new EqualsTester() .addEqualityGroup(g, Functions.<@Nullable Object>constant(null))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java
} } } @J2ktIncompatible @GwtIncompatible // too slow public void testEquals() { EqualsTester equalsTester = new EqualsTester(); for (int a : TEST_INTS) { long value = a & 0xffffffffL; equalsTester.addEqualityGroup( UnsignedInteger.fromIntBits(a), UnsignedInteger.valueOf(value), UnsignedInteger.valueOf(Long.toString(value)),Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 9.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/TablesTest.java
import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.collect.Table.Cell; import com.google.common.testing.EqualsTester; import com.google.common.testing.SerializableTester; import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link Tables}. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
} } } @GwtIncompatible // too slow public void testEquals() { EqualsTester equalsTester = new EqualsTester(); for (long a : TEST_LONGS) { BigInteger big = (a >= 0) ? BigInteger.valueOf(a) : BigInteger.valueOf(a).add(BigInteger.ZERO.setBit(64)); equalsTester.addEqualityGroup( UnsignedLong.fromLongBits(a), UnsignedLong.valueOf(big),Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 10.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/TablesTest.java
import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.collect.Table.Cell; import com.google.common.testing.EqualsTester; import com.google.common.testing.SerializableTester; import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link Tables}. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.1K bytes - Click Count (0)