- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 135 for testEquals (0.15 sec)
-
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
new EqualsTester() .addEqualityGroup(cache.asMap().keySet(), keys) .addEqualityGroup(ImmutableSet.of()) .testEquals(); assertEquals(WARMUP_SIZE, keys.size()); for (int i = WARMUP_MIN; i < WARMUP_MAX; i++) { Object key = warmed.get(i - WARMUP_MIN).getKey(); assertTrue(keys.contains(key));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 15K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
Set<Entry<String, Integer>> entrySet = map.entrySet(); assertTrue(entrySet instanceof SynchronizedSet); assertSame(mutex, ((SynchronizedSet<?>) entrySet).mutex); } public void testEquals() { boolean unused = create().equals(new HashMap<String, Integer>()); } public void testHashCode() { int unused = create().hashCode(); } public void testToString() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ClassPathTest.java
public class ClassPathTest extends TestCase { private static final Logger log = Logger.getLogger(ClassPathTest.class.getName()); private static final File FILE = new File("."); public void testEquals() { new EqualsTester() .addEqualityGroup(classInfo(ClassPathTest.class), classInfo(ClassPathTest.class)) .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader()))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 27.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
// return collection::iterator; return new Iterable<T>() { @Override public Iterator<T> iterator() { return collection.iterator(); } }; } public void testEquals() { new EqualsTester() .addEqualityGroup(ImmutableDoubleArray.of()) .addEqualityGroup( ImmutableDoubleArray.of(1, 2), reserialize(ImmutableDoubleArray.of(1, 2)),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java
.addEqualityGroup( network.inEdges(node), network.outEdges(node), network.incidentEdges(node)) .testEquals(); new EqualsTester() .addEqualityGroup( network.predecessors(node), network.successors(node), network.adjacentNodes(node)) .testEquals(); for (Integer adjacentNode : network.adjacentNodes(node)) { assertThat(network.edgesConnecting(node, adjacentNode))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 18.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ContiguousSetTest.java
assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closed(2L, 1L)); assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closedOpen(2L, 1L)); } public void testEquals() { new EqualsTester() .addEqualityGroup( ContiguousSet.create(Range.closed(1, 3), integers()), ContiguousSet.closed(1, 3),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 19K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
.addEqualityGroup(lexy, Comparators.lexicographical(comparator)) .addEqualityGroup(Comparators.lexicographical(String.CASE_INSENSITIVE_ORDER)) .addEqualityGroup(Ordering.natural()) .testEquals(); } public void testIsInOrder() { assertFalse(isInOrder(asList(5, 3, 0, 9), Ordering.natural())); assertFalse(isInOrder(asList(0, 5, 3, 9), Ordering.natural()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/HostAndPortTest.java
new EqualsTester() .addEqualityGroup(hpNoPort1, hpNoPort2, hpNoPort3, hpNoPort4, hpNoPort5) .addEqualityGroup(hpWithPort1, hpWithPort2, hpWithPort3) .testEquals(); } public void testRequireBracketsForIPv6() { // Bracketed IPv6 works fine. assertEquals("::1", HostAndPort.fromString("[::1]").requireBracketsForIPv6().getHost());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 9.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java
.addEqualityGroup( network.inEdges(node), network.outEdges(node), network.incidentEdges(node)) .testEquals(); new EqualsTester() .addEqualityGroup( network.predecessors(node), network.successors(node), network.adjacentNodes(node)) .testEquals(); for (Integer adjacentNode : network.adjacentNodes(node)) { assertThat(network.edgesConnecting(node, adjacentNode))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 18.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java
assertEquals(newHashSet(elements), multimap.asMap().entrySet()); } }.test(); } public void testEquals() { new EqualsTester() .addEqualityGroup( LinkedListMultimap.create(), LinkedListMultimap.create(), LinkedListMultimap.create(1)) .testEquals(); } @GwtIncompatible // reflection public void testNulls() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18K bytes - Viewed (0)