Skip to content

Commit a9c5067

Browse files
committed
Invoke proper Builder
1 parent 79a7c25 commit a9c5067

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStreamTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ public void test_ConstructorLjava_io_InputStreamI() throws IOException {
189189
// is.read should now throw an exception because it will have to be filled.
190190
assertThrows(IOException.class, () -> is.read());
191191

192-
assertThrows(NullPointerException.class, () -> UnsynchronizedBufferedInputStream.builder().setInputStream(null).setBufferSize(100).get());
193-
assertThrows(NullPointerException.class, () -> UnsynchronizedBufferedInputStream.builder().setInputStream(null));
192+
assertThrows(NullPointerException.class, () -> new UnsynchronizedBufferedInputStream.Builder().setInputStream(null).setBufferSize(100).get());
193+
assertThrows(NullPointerException.class, () -> new UnsynchronizedBufferedInputStream.Builder().setInputStream(null));
194194
}
195195

196196
/**

0 commit comments

Comments
 (0)