@Test public void invalidate() { HttpSession hs = mockHttpSession(); SessionLock lock = mockLock(); hs.invalidate(); replay(); Session session = new SessionImpl(null, hs, lock); session.invalidate(); verify(); }
public void invalidate() { invalidated = true; session.invalidate(); }
SessionImpl implements Session { public void invalidate() { invalidated = true; session.invalidate(); } }
SessionImpl implements Session { public void invalidate() { invalidated = true; session.invalidate(); } SessionImpl(HttpServletRequest request, HttpSession session, SessionLock lock); }
SessionImpl implements Session { public void invalidate() { invalidated = true; session.invalidate(); } SessionImpl(HttpServletRequest request, HttpSession session, SessionLock lock); Object getAttribute(String name); List<String> getAttributeNames(); void setAttribute(String name, Object value); List<String> getAttributeNames(String prefix); int getMaxInactiveInterval(); void invalidate(); boolean isInvalidated(); void setMaxInactiveInterval(int seconds); void restoreDirtyObjects(); }
SessionImpl implements Session { public void invalidate() { invalidated = true; session.invalidate(); } SessionImpl(HttpServletRequest request, HttpSession session, SessionLock lock); Object getAttribute(String name); List<String> getAttributeNames(); void setAttribute(String name, Object value); List<String> getAttributeNames(String prefix); int getMaxInactiveInterval(); void invalidate(); boolean isInvalidated(); void setMaxInactiveInterval(int seconds); void restoreDirtyObjects();  }