- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for testCopyOf_iteratorContainingNull (0.15 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator); assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset); } public void testCopyOf_iteratorContainingNull() { Iterator<String> iterator = asList("a", null, "b").iterator(); assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(iterator)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 19.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
Set<String> set = copyOf(iterator); assertEquals(2, set.size()); assertTrue(set.contains("a")); assertTrue(set.contains("b")); } public void testCopyOf_iteratorContainingNull() { Iterator<@Nullable String> c = Iterators.forArray("a", null, "b"); assertThrows(NullPointerException.class, () -> copyOf((Iterator<String>) c)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 18.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator); assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset); } public void testCopyOf_iteratorContainingNull() { Iterator<String> iterator = asList("a", null, "b").iterator(); assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(iterator)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 22.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
Iterator<String> iterator = asList("a", "b", "a").iterator(); List<String> list = ImmutableList.copyOf(iterator); assertEquals(asList("a", "b", "a"), list); } public void testCopyOf_iteratorContainingNull() { Iterator<@Nullable String> iterator = Arrays.<@Nullable String>asList("a", null, "b").iterator(); assertThrows(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 23.6K bytes - Click Count (0)