Description
org.apache.wicket.protocol.http.mock.MockHttpSession on invalidate calls just:
@Override
public void invalidate()
{
attributes.clear();
id = generateSessionId();
}
while org.apache.wicket.session.HttpSessionStore valueUnbound calls
public void valueUnbound(final HttpSessionBindingEvent evt) { String sessionId = evt.getSession().getId(); log.debug("Session unbound: {}", sessionId); if (wicketSession != null) { wicketSession.onInvalidate(); } ... }
(valueUnbound is called on org.apache.catalina.session.StandardSession.invalidate)
this causes to be impossible to properly test what happens on invalidation of the session.