- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 114 for test_equals2 (0.04 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java
} @CollectionSize.Require(SEVERAL) public void testEquals() { resetContainer(mapEntry(k0(), v0()), mapEntry(k1(), v0()), mapEntry(k0(), v3())); Map<K, Collection<V>> expected = new HashMap<>(); expected.put(k0(), Lists.newArrayList(v0(), v3())); expected.put(k1(), Lists.newArrayList(v0())); new EqualsTester().addEqualityGroup(expected, multimap().asMap()).testEquals(); } @CollectionSize.Require(SEVERAL)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 4.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java
List<String> proxy = newDelegatingList(LIST1); assertEquals(Proxy.getInvocationHandler(proxy).toString(), proxy.toString()); } interface A {} interface B {} public void testEquals() { new EqualsTester() .addEqualityGroup(newDelegatingList(LIST1)) // Actually, this violates List#equals contract. // But whatever, no one is going to proxy List (hopefully).
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 02:48:50 UTC 2024 - 5.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingTableTest.java
} }); } public void testEquals() { Table<Integer, Integer, String> table1 = ImmutableTable.of(1, 1, "one"); Table<Integer, Integer, String> table2 = ImmutableTable.of(2, 2, "two"); new EqualsTester() .addEqualityGroup(table1, wrap(table1), wrap(table1)) .addEqualityGroup(table2, wrap(table2)) .testEquals(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/InvalidatableSetTest.java
setToTest = InvalidatableSet.of(wrappedSet, () -> wrappedSet.contains(1), () -> 1 + "is not present"); } @Test @SuppressWarnings("TruthSelfEquals") public void testEquals() { // sanity check on construction of copyOfWrappedSet assertThat(wrappedSet).isEqualTo(copyOfWrappedSet); // test that setToTest is still valid assertThat(setToTest).isEqualTo(wrappedSet);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapEqualsTester.java
ListMultimap<K, V> multimap2 = getSubjectGenerator() .create(mapEntry(k0(), v1()), mapEntry(k0(), v0()), mapEntry(k0(), v0())); new EqualsTester().addEqualityGroup(multimap1).addEqualityGroup(multimap2).testEquals(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java
} public void testEquals() { new EqualsTester() .addEqualityGroup(ImmutableMultimap.of(), ImmutableMultimap.of()) .addEqualityGroup(ImmutableMultimap.of(1, "a"), ImmutableMultimap.of(1, "a")) .addEqualityGroup( ImmutableMultimap.of(1, "a", 2, "b"), ImmutableMultimap.of(2, "b", 1, "a")) .testEquals(); } @J2ktIncompatible
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/RangeTest.java
assertFalse(predicate.apply(4)); } public void testEquals() { new EqualsTester() .addEqualityGroup(Range.open(1, 5), Range.range(1, OPEN, 5, OPEN)) .addEqualityGroup(Range.greaterThan(2), Range.greaterThan(2)) .addEqualityGroup(Range.all(), Range.all()) .addEqualityGroup("Phil") .testEquals(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.1K bytes - Viewed (0) -
android/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/TablesTest.java
.addEqualityGroup(immutableCell("foo", 1, 'b')) .addEqualityGroup( Tables.<@Nullable Object, @Nullable Object, @Nullable Object>immutableCell( null, null, null)) .testEquals(); } public void testEntryEqualsNull() { Cell<@Nullable String, @Nullable Integer, @Nullable Character> entry = immutableCell(null, null, null); new EqualsTester()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 3.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractTableReadTest.java
assertFalse(table.isEmpty()); } public void testSize() { assertSize(0); table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertSize(3); } public void testEquals() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); // We know that we have only added non-null Characters. Table<String, Integer, Character> hashCopy =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.6K bytes - Viewed (0)