- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testToArrayEmpty (0.06 seconds)
-
guava-tests/test/com/google/common/collect/IterablesTest.java
Iterable<String> iterable = asList("foo", "bar"); assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterable, "x")); } @GwtIncompatible // Iterables.toArray(Iterable, Class) public void testToArrayEmpty() { Iterable<String> iterable = emptyList(); String[] array = Iterables.toArray(iterable, String.class); assertThat(array).isEmpty(); } @GwtIncompatible // Iterables.toArray(Iterable, Class)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 47.5K bytes - Click Count (0)