- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testOnlyElementNull (0.09 sec)
-
guava-tests/test/com/google/common/collect/MoreCollectorsTest.java
} public void testOnlyElementSingleton() { assertThat(Stream.of(1).collect(onlyElement())).isEqualTo(1); } public void testOnlyElementNull() { assertThat(Stream.<@Nullable Object>of((Object) null).collect(onlyElement())).isNull(); } public void testOnlyElementMultiple() { IllegalArgumentException expected =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 3.2K bytes - Viewed (0)