@Test public void doSessionClosed_shouldCallSessionCloseListeners() throws Exception { final SessionManagementBean sessionBean = context.mock(SessionManagementBean.class, "sessionBean"); context.checking(new Expectations() { { oneOf(sessionBean).doSessionClosed(); oneOf(sessionBean).doSessionClosedListeners(); } }); strategy.doSessionClosed(sessionBean); }
@Override public void doSessionClosed(final SessionManagementBean sessionBean) throws Exception { if (sessionBean != null) { sessionBean.doSessionClosed(); sessionBean.doSessionClosedListeners(); } }
CollectOnlyManagementSessionStrategy implements ManagementSessionStrategy { @Override public void doSessionClosed(final SessionManagementBean sessionBean) throws Exception { if (sessionBean != null) { sessionBean.doSessionClosed(); sessionBean.doSessionClosedListeners(); } } }
CollectOnlyManagementSessionStrategy implements ManagementSessionStrategy { @Override public void doSessionClosed(final SessionManagementBean sessionBean) throws Exception { if (sessionBean != null) { sessionBean.doSessionClosed(); sessionBean.doSessionClosedListeners(); } }  }
CollectOnlyManagementSessionStrategy implements ManagementSessionStrategy { @Override public void doSessionClosed(final SessionManagementBean sessionBean) throws Exception { if (sessionBean != null) { sessionBean.doSessionClosed(); sessionBean.doSessionClosedListeners(); } }  @Override void doSessionCreated(final SessionManagementBean sessionBean); @Override void doSessionClosed(final SessionManagementBean sessionBean); @Override void doMessageReceived(final SessionManagementBean sessionBean, final Object message); @Override void doFilterWrite(final SessionManagementBean sessionBean, final WriteRequest writeRequest); @Override void doExceptionCaught(final SessionManagementBean sessionBean, final Throwable cause); String toString(); }
CollectOnlyManagementSessionStrategy implements ManagementSessionStrategy { @Override public void doSessionClosed(final SessionManagementBean sessionBean) throws Exception { if (sessionBean != null) { sessionBean.doSessionClosed(); sessionBean.doSessionClosedListeners(); } }  @Override void doSessionCreated(final SessionManagementBean sessionBean); @Override void doSessionClosed(final SessionManagementBean sessionBean); @Override void doMessageReceived(final SessionManagementBean sessionBean, final Object message); @Override void doFilterWrite(final SessionManagementBean sessionBean, final WriteRequest writeRequest); @Override void doExceptionCaught(final SessionManagementBean sessionBean, final Throwable cause); String toString();  }