All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mockrunner.mock.web.MockSessionContext Maven / Gradle / Ivy

There is a newer version: 2.0.7
Show newest version
package com.mockrunner.mock.web;

import java.util.Enumeration;
import java.util.Vector;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionContext;

/**
 * Mock implementation of HttpSessionContext.
 */
public class MockSessionContext implements HttpSessionContext
{
    public Enumeration getIds()
    { 
        return new Vector().elements();
    }

    public HttpSession getSession(String arg0)
    {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy