- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for testGetOnlyElement_withDefault_singleton (0.35 seconds)
-
guava-tests/test/com/google/common/collect/IterablesTest.java
Iterable<String> iterable = asList("foo", "bar"); assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterable)); } public void testGetOnlyElement_withDefault_singleton() { Iterable<String> iterable = singletonList("foo"); assertThat(getOnlyElement(iterable, "bar")).isEqualTo("foo"); } public void testGetOnlyElement_withDefault_empty() {
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) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
assertThat(expected) .hasMessageThat() .isEqualTo("expected one element but was: <one, two, three, four, five, ...>"); } public void testGetOnlyElement_withDefault_singleton() { Iterator<String> iterator = singletonList("foo").iterator(); assertThat(getOnlyElement(iterator, "bar")).isEqualTo("foo"); } public void testGetOnlyElement_withDefault_empty() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
assertThat(expected) .hasMessageThat() .isEqualTo("expected one element but was: <one, two, three, four, five, ...>"); } public void testGetOnlyElement_withDefault_singleton() { Iterator<String> iterator = singletonList("foo").iterator(); assertThat(getOnlyElement(iterator, "bar")).isEqualTo("foo"); } public void testGetOnlyElement_withDefault_empty() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0)