@Test public void close() throws Exception { new UsbFileInputStream(file).close(); verify(file).close(); }
@Override public void close() throws IOException { file.close(); }
UsbFileInputStream extends InputStream { @Override public void close() throws IOException { file.close(); } }
UsbFileInputStream extends InputStream { @Override public void close() throws IOException { file.close(); } UsbFileInputStream(UsbFile file); }
UsbFileInputStream extends InputStream { @Override public void close() throws IOException { file.close(); } UsbFileInputStream(UsbFile file); @Override int available(); @Override int read(); @Override void close(); @Override int read(byte[] buffer); @Override int read(byte[] buffer, int byteOffset, int byteCount); @Override long skip(long byteCount); }
UsbFileInputStream extends InputStream { @Override public void close() throws IOException { file.close(); } UsbFileInputStream(UsbFile file); @Override int available(); @Override int read(); @Override void close(); @Override int read(byte[] buffer); @Override int read(byte[] buffer, int byteOffset, int byteCount); @Override long skip(long byteCount);  }