- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for containsExactlyElementsIn (0.24 sec)
-
android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java
assume().that(graphIsMutable()).isTrue(); Set<Integer> nodes = graph.nodes(); assertThrows(UnsupportedOperationException.class, () -> nodes.add(N2)); addNode(N1); assertThat(graph.nodes()).containsExactlyElementsIn(nodes); } @Override @Test public void adjacentNodes_checkReturnedSetMutability() { assume().that(graphIsMutable()).isTrue(); addNode(N1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SplitterTest.java
ImmutableMap<String, String> expected = ImmutableMap.of("boy", "tom", "girl", "tina", "cat", "kitty", "dog", "tommy"); assertThat(m).isEqualTo(expected); assertThat(m.entrySet()).containsExactlyElementsIn(expected.entrySet()).inOrder(); } public void testMapSplitter_trimmedEntries() { Map<String, String> m = COMMA_SPLITTER .trimResults()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
while (!q.isEmpty()) { assertThat(q).containsExactlyElementsIn(contents); Integer next = q.pollFirst(); contents.remove(next); assertThat(q).containsExactlyElementsIn(contents); for (int i = 0; i <= size; i++) { q.add(i); contents.add(i); assertThat(q).containsExactlyElementsIn(contents); q.add(next); contents.add(next);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
ImmutableSortedSet<String> set = ImmutableSortedSet.copyOf(strings); sort(strings); for (int i = 0; i < strings.length; i++) { assertThat(set.headSet(strings[i], true)) .containsExactlyElementsIn(sortedNumberNames(0, i + 1)) .inOrder(); } } public void testHeadSetExclusive() { String[] strings = NUMBER_NAMES.toArray(new String[0]);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java
addNode(N1); ImmutableSet<Integer> nodes = ImmutableSet.copyOf(networkAsMutableNetwork.nodes()); assertFalse(networkAsMutableNetwork.addNode(N1)); assertThat(networkAsMutableNetwork.nodes()).containsExactlyElementsIn(nodes); } @Test public void removeNode_existingNode() { assume().that(graphIsMutable()).isTrue(); addEdge(N1, N2, E12); addEdge(N4, N1, E41);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 32.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java
assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23)); network.addEdge(N1, N2, E12); assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactlyElementsIn(edgesConnecting); } @Test public void edgesConnecting_oneEdge() { network.addEdge(N1, N2, E12); assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactly(E12);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 7.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
assertThat(location.scanResources()).containsExactlyElementsIn(resources); } } public void testLocationsFrom_idempotentLocations() { ImmutableSet<ClassPath.LocationInfo> locations = ClassPath.locationsFrom(getClass().getClassLoader()); assertThat(ClassPath.locationsFrom(getClass().getClassLoader())) .containsExactlyElementsIn(locations); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 20:58:01 UTC 2025 - 23K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
ImmutableSortedSet<Integer> asSet = RANGE_SET_ONE.asSet(DiscreteDomain.integers()); assertEquals(expectedSet, asSet); assertThat(asSet).containsExactlyElementsIn(expectedSet).inOrder(); assertTrue(asSet.containsAll(expectedSet)); SerializableTester.reserializeAndAssert(asSet); } public void testAsSetHeadSet() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 25 16:19:30 UTC 2025 - 21.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java
multimap.put("bar", 3); multimap.put("foo", 2); LinkedListMultimap<String, Integer> copy = LinkedListMultimap.create(multimap); assertEquals(multimap, copy); assertThat(copy.entries()).containsExactlyElementsIn(multimap.entries()).inOrder(); } public void testCreateFromSize() { LinkedListMultimap<String, Integer> multimap = LinkedListMultimap.create(20); multimap.put("foo", 1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
Object[] lookupKeys = new Object[] {new Object(), new Object(), new Object()}; Map<Object, Object> result = cache.getAll(asList(lookupKeys)); assertThat(result.keySet()).containsExactlyElementsIn(asList(lookupKeys)); for (Entry<Object, Object> entry : result.entrySet()) { Object key = entry.getKey(); Object value = entry.getValue(); assertSame(value, result.get(key));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 85.7K bytes - Viewed (0)