- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testToOptionalMultiple (0.09 sec)
-
android/guava-tests/test/com/google/common/collect/MoreCollectorsTest.java
} public void testToOptionalNull() { Stream<@Nullable Object> stream = Stream.of((Object) null); assertThrows(NullPointerException.class, () -> stream.collect(toOptional())); } public void testToOptionalMultiple() { IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> Stream.of(1, 2).collect(toOptional())); assertThat(expected).hasMessageThat().contains("1, 2"); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu May 15 21:47:56 UTC 2025 - 3.2K bytes - Viewed (0)