@Test public void testWriteSessionIdToContextOnCreateIfConfigured() { when(configuration.shouldGenerateSessionId()).thenReturn(true); unit.sessionCreated(new HttpSessionEvent(session)); verify(backend, atLeastOnce()).put(eq(SESSION_ID_KEY), anyString()); }
@Override public final void sessionCreated(HttpSessionEvent httpSessionEvent) { Utilities.generateSessionIdIfNecessary(backend, httpSessionEvent.getSession().getId()); }
TraceeSessionListener implements HttpSessionListener { @Override public final void sessionCreated(HttpSessionEvent httpSessionEvent) { Utilities.generateSessionIdIfNecessary(backend, httpSessionEvent.getSession().getId()); } }
TraceeSessionListener implements HttpSessionListener { @Override public final void sessionCreated(HttpSessionEvent httpSessionEvent) { Utilities.generateSessionIdIfNecessary(backend, httpSessionEvent.getSession().getId()); } @SuppressWarnings("unused")  TraceeSessionListener(); protected  TraceeSessionListener(TraceeBackend backend); }
TraceeSessionListener implements HttpSessionListener { @Override public final void sessionCreated(HttpSessionEvent httpSessionEvent) { Utilities.generateSessionIdIfNecessary(backend, httpSessionEvent.getSession().getId()); } @SuppressWarnings("unused")  TraceeSessionListener(); protected  TraceeSessionListener(TraceeBackend backend); @Override final void sessionCreated(HttpSessionEvent httpSessionEvent); @Override final void sessionDestroyed(HttpSessionEvent httpSessionEvent); }
TraceeSessionListener implements HttpSessionListener { @Override public final void sessionCreated(HttpSessionEvent httpSessionEvent) { Utilities.generateSessionIdIfNecessary(backend, httpSessionEvent.getSession().getId()); } @SuppressWarnings("unused")  TraceeSessionListener(); protected  TraceeSessionListener(TraceeBackend backend); @Override final void sessionCreated(HttpSessionEvent httpSessionEvent); @Override final void sessionDestroyed(HttpSessionEvent httpSessionEvent);  }