@Test public void testSetPerformancePreferences() throws Exception { sniffySocket.setPerformancePreferences(1, 2, 3); verifyPrivate(delegate).invoke("setPerformancePreferences", 1, 2, 3); verifyNoMoreInteractions(delegate); }
@Override protected void setPerformancePreferences(int connectionTime, int latency, int bandwidth) { copyToDelegate(); long start = System.currentTimeMillis(); try { method("setPerformancePreferences", int.class, int.class, int.class).invoke(delegate, connectionTime, latency, bandwidth); } catch (Exception e) { ExceptionUtil.processException(e); } finally { logSocket(System.currentTimeMillis() - start); copyFromDelegate(); } }
SnifferSocketImpl extends SocketImpl implements SniffySocket { @Override protected void setPerformancePreferences(int connectionTime, int latency, int bandwidth) { copyToDelegate(); long start = System.currentTimeMillis(); try { method("setPerformancePreferences", int.class, int.class, int.class).invoke(delegate, connectionTime, latency, bandwidth); } catch (Exception e) { ExceptionUtil.processException(e); } finally { logSocket(System.currentTimeMillis() - start); copyFromDelegate(); } } }
SnifferSocketImpl extends SocketImpl implements SniffySocket { @Override protected void setPerformancePreferences(int connectionTime, int latency, int bandwidth) { copyToDelegate(); long start = System.currentTimeMillis(); try { method("setPerformancePreferences", int.class, int.class, int.class).invoke(delegate, connectionTime, latency, bandwidth); } catch (Exception e) { ExceptionUtil.processException(e); } finally { logSocket(System.currentTimeMillis() - start); copyFromDelegate(); } } protected  SnifferSocketImpl(SocketImpl delegate); }
SnifferSocketImpl extends SocketImpl implements SniffySocket { @Override protected void setPerformancePreferences(int connectionTime, int latency, int bandwidth) { copyToDelegate(); long start = System.currentTimeMillis(); try { method("setPerformancePreferences", int.class, int.class, int.class).invoke(delegate, connectionTime, latency, bandwidth); } catch (Exception e) { ExceptionUtil.processException(e); } finally { logSocket(System.currentTimeMillis() - start); copyFromDelegate(); } } protected  SnifferSocketImpl(SocketImpl delegate); @Override void setConnectionStatus(Integer connectionStatus); @Override String toString(); @Override void setOption(int optID, Object value); @Override Object getOption(int optID); @Override InetSocketAddress getInetSocketAddress(); }
SnifferSocketImpl extends SocketImpl implements SniffySocket { @Override protected void setPerformancePreferences(int connectionTime, int latency, int bandwidth) { copyToDelegate(); long start = System.currentTimeMillis(); try { method("setPerformancePreferences", int.class, int.class, int.class).invoke(delegate, connectionTime, latency, bandwidth); } catch (Exception e) { ExceptionUtil.processException(e); } finally { logSocket(System.currentTimeMillis() - start); copyFromDelegate(); } } protected  SnifferSocketImpl(SocketImpl delegate); @Override void setConnectionStatus(Integer connectionStatus); @Override String toString(); @Override void setOption(int optID, Object value); @Override Object getOption(int optID); @Override InetSocketAddress getInetSocketAddress();  }