@Test public void fireSessionError() { IOException exception = new IOException(); this.sessionListenerSupport.fireSessionError(exception); verify(this.sessionListener).sessionError(Matchers.eq(new SessionEvent(this.wagon, exception))); }
@Override public void fireSessionError(Exception exception) { SessionEvent event = new SessionEvent(this.wagon, exception); for (SessionListener sessionListener : this.sessionListeners) { sessionListener.sessionError(event); } }
StandardSessionListenerSupport implements SessionListenerSupport { @Override public void fireSessionError(Exception exception) { SessionEvent event = new SessionEvent(this.wagon, exception); for (SessionListener sessionListener : this.sessionListeners) { sessionListener.sessionError(event); } } }
StandardSessionListenerSupport implements SessionListenerSupport { @Override public void fireSessionError(Exception exception) { SessionEvent event = new SessionEvent(this.wagon, exception); for (SessionListener sessionListener : this.sessionListeners) { sessionListener.sessionError(event); } } StandardSessionListenerSupport(Wagon wagon); }
StandardSessionListenerSupport implements SessionListenerSupport { @Override public void fireSessionError(Exception exception) { SessionEvent event = new SessionEvent(this.wagon, exception); for (SessionListener sessionListener : this.sessionListeners) { sessionListener.sessionError(event); } } StandardSessionListenerSupport(Wagon wagon); @Override void addSessionListener(SessionListener sessionListener); @Override void removeSessionListener(SessionListener sessionListener); @Override boolean hasSessionListener(SessionListener sessionListener); @Override void fireSessionOpening(); @Override void fireSessionOpened(); @Override void fireSessionDisconnecting(); @Override void fireSessionDisconnected(); @Override void fireSessionConnectionRefused(); @Override void fireSessionLoggedIn(); @Override void fireSessionLoggedOff(); @Override void fireSessionError(Exception exception); }
StandardSessionListenerSupport implements SessionListenerSupport { @Override public void fireSessionError(Exception exception) { SessionEvent event = new SessionEvent(this.wagon, exception); for (SessionListener sessionListener : this.sessionListeners) { sessionListener.sessionError(event); } } StandardSessionListenerSupport(Wagon wagon); @Override void addSessionListener(SessionListener sessionListener); @Override void removeSessionListener(SessionListener sessionListener); @Override boolean hasSessionListener(SessionListener sessionListener); @Override void fireSessionOpening(); @Override void fireSessionOpened(); @Override void fireSessionDisconnecting(); @Override void fireSessionDisconnected(); @Override void fireSessionConnectionRefused(); @Override void fireSessionLoggedIn(); @Override void fireSessionLoggedOff(); @Override void fireSessionError(Exception exception);  }