- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testToArrayEmpty (0.06 sec)
-
android/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)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 45.6K bytes - Viewed (0)