List of usage examples for org.apache.commons.io.input NullInputStream read
public int read() throws IOException
From source file:ch.cyberduck.core.io.DisabledChecksumComputeTest.java
@Test(expected = IOException.class) public void compute() throws Exception { final NullInputStream in = new NullInputStream(0L); new DisabledChecksumCompute().compute(in, new TransferStatus()); assertEquals(-1, in.read()); in.read();//from w w w . ja v a 2 s. c om }