- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for testStream (0.06 seconds)
-
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
AtomicLong count = new AtomicLong(0); ImmutableLongArray.of(0, 1, 2, 3) .forEach(i -> assertThat(i).isEqualTo(count.getAndIncrement())); assertThat(count.get()).isEqualTo(4); } public void testStream() { ImmutableLongArray.of().stream().forEach(i -> fail()); ImmutableLongArray.of(0, 1, 3).subArray(1, 1).stream().forEach(i -> fail());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 20.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java
AtomicInteger count = new AtomicInteger(0); ImmutableIntArray.of(0, 1, 2, 3).forEach(i -> assertThat(i).isEqualTo(count.getAndIncrement())); assertThat(count.get()).isEqualTo(4); } public void testStream() { ImmutableIntArray.of().stream().forEach(i -> fail()); ImmutableIntArray.of(0, 1, 3).subArray(1, 1).stream().forEach(i -> fail());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 20.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
ImmutableDoubleArray.of(0, 1, 2, 3) .forEach(i -> assertThat(i).isEqualTo((double) count.getAndIncrement())); assertThat(count.get()).isEqualTo(4); } public void testStream() { ImmutableDoubleArray.of().stream().forEach(i -> fail()); ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).stream().forEach(i -> fail()); assertThat(ImmutableDoubleArray.of(0, 1, 3).stream().toArray())
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 21.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/FluentIterableTest.java
* overkill when nearly all Streams are produced using well-tested JDK calls. So, we cheat and * just test that the toArray() contents are as expected. */ public void testStream() { assertThat(FluentIterable.of().stream()).isEmpty(); assertThat(FluentIterable.of("a").stream()).containsExactly("a"); assertThat(FluentIterable.of(1, 2, 3).stream().filter(n -> n > 1)).containsExactly(2, 3);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 31.2K bytes - Click Count (0)