@Test public void new_withValidId_setsIdCorrectly() { AwsHttpSession session = new AwsHttpSession("id"); assertEquals("id", session.getId()); }
@Override public String getId() { return id; }
AwsHttpSession implements HttpSession { @Override public String getId() { return id; } }
AwsHttpSession implements HttpSession { @Override public String getId() { return id; } AwsHttpSession(String id); }
AwsHttpSession implements HttpSession { @Override public String getId() { return id; } AwsHttpSession(String id); @Override long getCreationTime(); @Override String getId(); @Override long getLastAccessedTime(); @Override ServletContext getServletContext(); @Override void setMaxInactiveInterval(int interval); @Override int getMaxInactiveInterval(); @Override @Deprecated HttpSessionContext getSessionContext(); @Override Object getAttribute(String name); @Override @Deprecated Object getValue(String name); @Override Enumeration<String> getAttributeNames(); @Override @Deprecated String[] getValueNames(); @Override void setAttribute(String name, Object value); @Override @Deprecated void putValue(String name, Object value); @Override void removeAttribute(String name); @Override @Deprecated void removeValue(String name); @Override void invalidate(); @Override boolean isNew(); }
AwsHttpSession implements HttpSession { @Override public String getId() { return id; } AwsHttpSession(String id); @Override long getCreationTime(); @Override String getId(); @Override long getLastAccessedTime(); @Override ServletContext getServletContext(); @Override void setMaxInactiveInterval(int interval); @Override int getMaxInactiveInterval(); @Override @Deprecated HttpSessionContext getSessionContext(); @Override Object getAttribute(String name); @Override @Deprecated Object getValue(String name); @Override Enumeration<String> getAttributeNames(); @Override @Deprecated String[] getValueNames(); @Override void setAttribute(String name, Object value); @Override @Deprecated void putValue(String name, Object value); @Override void removeAttribute(String name); @Override @Deprecated void removeValue(String name); @Override void invalidate(); @Override boolean isNew(); static final int SESSION_DURATION_SEC; }