- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for testCopyOf_nullArray (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
} public void testCopyOf_arrayOfOneElement() { String[] array = new String[] {"a"}; Set<String> set = copyOf(array); assertEquals(singleton("a"), set); } public void testCopyOf_nullArray() { assertThrows(NullPointerException.class, () -> copyOf((String[]) null)); } public void testCopyOf_arrayContainingOnlyNull() { @Nullable String[] array = new @Nullable String[] {null};
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) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
public void testCopyOf_arrayOfOneElement() { String[] array = new String[] {"a"}; List<String> list = ImmutableList.copyOf(array); assertEquals(singletonList("a"), list); } public void testCopyOf_nullArray() { assertThrows(NullPointerException.class, () -> ImmutableList.copyOf((String[]) null)); } public void testCopyOf_arrayContainingOnlyNull() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
public void testCopyOf_arrayOfOneElement() { String[] array = new String[] {"a"}; List<String> list = ImmutableList.copyOf(array); assertEquals(singletonList("a"), list); } public void testCopyOf_nullArray() { assertThrows(NullPointerException.class, () -> ImmutableList.copyOf((String[]) null)); } public void testCopyOf_arrayContainingOnlyNull() {
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)