PageRenderTime 18ms CodeModel.GetById 1ms app.highlight 11ms RepoModel.GetById 2ms app.codeStats 0ms

/sigmah/src/test/java/org/sigmah/server/mock/MockHttpSession.java

http://sigma-h.googlecode.com/
Java | 106 lines | 73 code | 26 blank | 7 comment | 0 complexity | 1df71ec91eed7b8e24c5b77363588db8 MD5 | raw file
  1/*
  2 * All Sigmah code is released under the GNU General Public License v3
  3 * See COPYRIGHT.txt and LICENSE.txt.
  4 */
  5
  6package org.sigmah.server.mock;
  7
  8import javax.servlet.ServletContext;
  9import javax.servlet.http.HttpSession;
 10import javax.servlet.http.HttpSessionContext;
 11import java.util.Enumeration;
 12
 13/**
 14 * @author Alex Bertram
 15 */
 16public class MockHttpSession implements HttpSession {
 17
 18    @Override
 19    public long getCreationTime() {
 20        return 0;
 21    }
 22
 23    @Override
 24    public String getId() {
 25        return null;
 26    }
 27
 28    @Override
 29    public long getLastAccessedTime() {
 30        return 0;
 31    }
 32
 33    @Override
 34    public ServletContext getServletContext() {
 35        return null;
 36    }
 37
 38    @Override
 39    public void setMaxInactiveInterval(int i) {
 40
 41    }
 42
 43    @Override
 44    public int getMaxInactiveInterval() {
 45        return 0;
 46    }
 47
 48    @Override
 49    @Deprecated
 50    public HttpSessionContext getSessionContext() {
 51        return null;
 52    }
 53
 54    @Override
 55    public Object getAttribute(String s) {
 56        return null;
 57    }
 58
 59    @Override
 60    @Deprecated
 61    public Object getValue(String s) {
 62        return null;
 63    }
 64
 65    @Override
 66    public Enumeration getAttributeNames() {
 67        return null;
 68    }
 69
 70    @Override
 71    @Deprecated
 72    public String[] getValueNames() {
 73        return new String[0];
 74    }
 75
 76    @Override
 77    public void setAttribute(String s, Object o) {
 78
 79    }
 80
 81    @Override
 82    @Deprecated
 83    public void putValue(String s, Object o) {
 84
 85    }
 86
 87    @Override
 88    public void removeAttribute(String s) {
 89
 90    }
 91
 92    @Override
 93    public void removeValue(String s) {
 94
 95    }
 96
 97    @Override
 98    public void invalidate() {
 99
100    }
101
102    @Override
103    public boolean isNew() {
104        return false;
105    }
106}