- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for containsExactlyElementsIn (0.12 sec)
-
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
Set<Object> expected = new HashMap<>(cache.asMap()).keySet(); assertThat(keys).containsExactlyElementsIn(expected); assertThat(keys.toArray()).asList().containsExactlyElementsIn(expected); assertThat(keys.toArray(new Object[0])).asList().containsExactlyElementsIn(expected); new EqualsTester() .addEqualityGroup(cache.asMap().keySet(), keys)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 15.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
Set<Object> expected = new HashMap<>(cache.asMap()).keySet(); assertThat(keys).containsExactlyElementsIn(expected); assertThat(keys.toArray()).asList().containsExactlyElementsIn(expected); assertThat(keys.toArray(new Object[0])).asList().containsExactlyElementsIn(expected); new EqualsTester() .addEqualityGroup(cache.asMap().keySet(), keys)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 15.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
List<Integer> target = new ArrayList<>(contents); target.add(4); C addThenFilter = filter(createUnfiltered(target), EVEN); assertThat(filterThenAdd).containsExactlyElementsIn(addThenFilter); } } public void testAdd() { for (List<Integer> contents : SAMPLE_INPUTS) { for (int toAdd = 0; toAdd < 10; toAdd++) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 13.1K 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/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/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)