- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for testCopyOf_collection_empty (0.45 sec)
-
android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
public void testCreation_arrayContainingOnlyNull() { String[] array = new String[] {null}; assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(array)); } public void testCopyOf_collection_empty() { Collection<String> c = MinimalCollection.of(); Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); assertTrue(multiset.isEmpty()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 19.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
ImmutableLongArray iia = ImmutableLongArray.copyOf((Iterable<Long>) list); list.set(2, 2L); assertThat(iia.asList()).containsExactly(0L, 1L, 3L).inOrder(); } public void testCopyOf_collection_empty() { Collection<Long> iterable = Collections.emptySet(); assertThat(ImmutableLongArray.copyOf(iterable)).isSameInstanceAs(ImmutableLongArray.of()); } public void testCopyOf_collection_nonempty() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 14:49:24 UTC 2025 - 20.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
@Nullable String[] array = new @Nullable String[] {null}; assertThrows(NullPointerException.class, () -> ImmutableMultiset.copyOf((String[]) array)); } public void testCopyOf_collection_empty() { Collection<String> c = MinimalCollection.of(); Multiset<String> multiset = ImmutableMultiset.copyOf(c); assertTrue(multiset.isEmpty()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
@Nullable String[] array = new @Nullable String[] {null}; assertThrows(NullPointerException.class, () -> copyOf((String[]) array)); } public void testCopyOf_collection_empty() { Collection<String> c = MinimalCollection.of(); Set<String> set = copyOf(c); assertEquals(Collections.<String>emptySet(), set); assertSame(this.<String>of(), set); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
public void testCreation_arrayContainingOnlyNull() { String[] array = new String[] {null}; assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(array)); } public void testCopyOf_collection_empty() { Collection<String> c = MinimalCollection.of(); Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); assertTrue(multiset.isEmpty()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 22.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf((Iterable<Double>) list); list.set(2, 2.0); assertThat(iia.asList()).containsExactly(0.0, 1.0, 3.0).inOrder(); } public void testCopyOf_collection_empty() { Collection<Double> iterable = Collections.emptySet(); assertThat(ImmutableDoubleArray.copyOf(iterable)).isSameInstanceAs(ImmutableDoubleArray.of()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
ImmutableLongArray iia = ImmutableLongArray.copyOf((Iterable<Long>) list); list.set(2, 2L); assertThat(iia.asList()).containsExactly(0L, 1L, 3L).inOrder(); } public void testCopyOf_collection_empty() { Collection<Long> iterable = Collections.emptySet(); assertThat(ImmutableLongArray.copyOf(iterable)).isSameInstanceAs(ImmutableLongArray.of()); } public void testCopyOf_collection_nonempty() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
@Nullable String[] array = new @Nullable String[] {null}; assertThrows(NullPointerException.class, () -> ImmutableMultiset.copyOf((String[]) array)); } public void testCopyOf_collection_empty() { Collection<String> c = MinimalCollection.of(); Multiset<String> multiset = ImmutableMultiset.copyOf(c); assertTrue(multiset.isEmpty()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
@Nullable String[] array = new @Nullable String[] {null}; assertThrows(NullPointerException.class, () -> ImmutableList.copyOf((String[]) array)); } public void testCopyOf_collection_empty() { Collection<String> c = MinimalCollection.of(); List<String> list = ImmutableList.copyOf(c); assertEquals(emptyList(), list); } public void testCopyOf_collection_oneElement() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
@Nullable String[] array = new @Nullable String[] {null}; assertThrows(NullPointerException.class, () -> ImmutableList.copyOf((String[]) array)); } public void testCopyOf_collection_empty() { Collection<String> c = MinimalCollection.of(); List<String> list = ImmutableList.copyOf(c); assertEquals(emptyList(), list); } public void testCopyOf_collection_oneElement() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 23.6K bytes - Viewed (0)