- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testGetOnlyElement_withDefault_multiple (0.13 sec)
-
guava-tests/test/com/google/common/collect/IterablesTest.java
public void testGetOnlyElement_withDefault_empty_null() { Iterable<String> iterable = emptyList(); assertNull(Iterables.<@Nullable String>getOnlyElement(iterable, null)); } public void testGetOnlyElement_withDefault_multiple() { Iterable<String> iterable = asList("foo", "bar"); assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterable, "x")); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
public void testGetOnlyElement_withDefault_empty_null() { Iterable<String> iterable = emptyList(); assertNull(Iterables.<@Nullable String>getOnlyElement(iterable, null)); } public void testGetOnlyElement_withDefault_multiple() { Iterable<String> iterable = asList("foo", "bar"); assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterable, "x")); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.2K bytes - Viewed (0)