com.brettonw.servlet.test.TestServletConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of servlet-tester Show documentation
Show all versions of servlet-tester Show documentation
Servlet Tester provides a support class to test 'GET' and 'POST' on servlet interfaces.
package com.brettonw.servlet.test;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import java.util.Enumeration;
public class TestServletConfig implements ServletConfig {
TestServletContext servletContext;
String name;
public TestServletConfig () {
this ("Test");
}
public TestServletConfig (String name) {
this.name = name;
servletContext = new TestServletContext ();
}
@Override
public String getServletName () {
return name;
}
@Override
public ServletContext getServletContext () {
return servletContext;
}
@Override
public String getInitParameter (String s) {
return null;
}
@Override
public Enumeration getInitParameterNames () {
return null;
}
}