@Test public void isFinished_Not() throws IOException { when(content.available()).thenReturn(1); boolean result = underTest.isFinished(); assertThat(result, is(false)); }
@Override public boolean isFinished() { try { return content.available() == 0; } catch (IOException e) { throw new RuntimeException(e); } }
ServletInputStreamWrapper extends ServletInputStream { @Override public boolean isFinished() { try { return content.available() == 0; } catch (IOException e) { throw new RuntimeException(e); } } }
ServletInputStreamWrapper extends ServletInputStream { @Override public boolean isFinished() { try { return content.available() == 0; } catch (IOException e) { throw new RuntimeException(e); } } ServletInputStreamWrapper(InputStream content); }
ServletInputStreamWrapper extends ServletInputStream { @Override public boolean isFinished() { try { return content.available() == 0; } catch (IOException e) { throw new RuntimeException(e); } } ServletInputStreamWrapper(InputStream content); @Override int read(byte[] b); @Override int read(byte[] b, int off, int len); @Override int read(); @Override boolean isFinished(); @Override boolean isReady(); @Override void setReadListener(ReadListener listener); }
ServletInputStreamWrapper extends ServletInputStream { @Override public boolean isFinished() { try { return content.available() == 0; } catch (IOException e) { throw new RuntimeException(e); } } ServletInputStreamWrapper(InputStream content); @Override int read(byte[] b); @Override int read(byte[] b, int off, int len); @Override int read(); @Override boolean isFinished(); @Override boolean isReady(); @Override void setReadListener(ReadListener listener);  }