We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82393b1 commit b75597bCopy full SHA for b75597b
1 file changed
src/test/java/org/apache/commons/io/function/IOStreamTest.java
@@ -72,6 +72,14 @@ public void testAdapt() {
72
assertEquals(1, IOStream.adapt(Stream.of("A")).count());
73
}
74
75
+ @SuppressWarnings("resource") // custom stream not recognized by compiler warning machinery
76
+ @Test
77
+ public void testAdaptAsParallel() {
78
+ assertEquals(0, IOStream.adapt((Stream<?>) null).parallel().count());
79
+ assertEquals(0, IOStream.adapt(Stream.empty()).parallel().count());
80
+ assertEquals(1, IOStream.adapt(Stream.of("A")).parallel().count());
81
+ }
82
+
83
@SuppressWarnings("resource") // custom stream not recognized by compiler warning machinery
84
@Test
85
public void testAllMatch() throws IOException {
0 commit comments