@Test public void testSent() { final DownloadTransfer transfer = new DownloadTransfer(new Host(new TestProtocol()), Collections.<TransferItem>emptyList()); final TerminalStreamListener l = new TerminalStreamListener(new TransferSpeedometer(transfer)); l.sent(1L); transfer.addSize(1L); l.sent(1L); }
@Override public void sent(final long bytes) { this.increment(); }
TerminalStreamListener implements StreamListener { @Override public void sent(final long bytes) { this.increment(); } }
TerminalStreamListener implements StreamListener { @Override public void sent(final long bytes) { this.increment(); } TerminalStreamListener(final TransferSpeedometer meter);  TerminalStreamListener(final TransferSpeedometer meter, final int width); }
TerminalStreamListener implements StreamListener { @Override public void sent(final long bytes) { this.increment(); } TerminalStreamListener(final TransferSpeedometer meter);  TerminalStreamListener(final TransferSpeedometer meter, final int width); @Override void recv(final long bytes); @Override void sent(final long bytes); }
TerminalStreamListener implements StreamListener { @Override public void sent(final long bytes) { this.increment(); } TerminalStreamListener(final TransferSpeedometer meter);  TerminalStreamListener(final TransferSpeedometer meter, final int width); @Override void recv(final long bytes); @Override void sent(final long bytes);  }