@Test public void shouldAskRouteContextToRecreateSessionOnRenewSession() { when(mockPippoWebContext.getRouteContext()).thenReturn(mockRouteContext); PippoSessionStore sessionStore = new PippoSessionStore(); assertThat(sessionStore.renewSession(mockPippoWebContext), is(true)); verify(mockRouteContext, times(1)).recreateSession(); verify(mockPippoWebContext, times(1)).getRouteContext(); }
public boolean renewSession(PippoWebContext pippoWebContext) { pippoWebContext.getRouteContext().recreateSession(); return true; }
PippoSessionStore implements SessionStore<PippoWebContext> { public boolean renewSession(PippoWebContext pippoWebContext) { pippoWebContext.getRouteContext().recreateSession(); return true; } }
PippoSessionStore implements SessionStore<PippoWebContext> { public boolean renewSession(PippoWebContext pippoWebContext) { pippoWebContext.getRouteContext().recreateSession(); return true; }  }
PippoSessionStore implements SessionStore<PippoWebContext> { public boolean renewSession(PippoWebContext pippoWebContext) { pippoWebContext.getRouteContext().recreateSession(); return true; }  @Override String getOrCreateSessionId(PippoWebContext pippoWebContext); @Override Object get(PippoWebContext pippoWebContext, String name); @Override void set(PippoWebContext pippoWebContext, String name, Object value); @Override boolean destroySession(PippoWebContext pippoWebContext); @Override Object getTrackableSession(PippoWebContext pippoWebContext); @Override SessionStore<PippoWebContext> buildFromTrackableSession(PippoWebContext pippoWebContext, Object trackableSession); boolean renewSession(PippoWebContext pippoWebContext); }
PippoSessionStore implements SessionStore<PippoWebContext> { public boolean renewSession(PippoWebContext pippoWebContext) { pippoWebContext.getRouteContext().recreateSession(); return true; }  @Override String getOrCreateSessionId(PippoWebContext pippoWebContext); @Override Object get(PippoWebContext pippoWebContext, String name); @Override void set(PippoWebContext pippoWebContext, String name, Object value); @Override boolean destroySession(PippoWebContext pippoWebContext); @Override Object getTrackableSession(PippoWebContext pippoWebContext); @Override SessionStore<PippoWebContext> buildFromTrackableSession(PippoWebContext pippoWebContext, Object trackableSession); boolean renewSession(PippoWebContext pippoWebContext);  }