View Javadoc
1 /* 2 * Angkor Web Framework 3 * 4 * Distributable under LGPL license. 5 * See terms of license at gnu.org. 6 */ 7 8 package com.tirsen.angkor.test.unit.mock; 9 10 import javax.servlet.FilterConfig; 11 import javax.servlet.ServletContext; 12 import java.util.Enumeration; 13 import java.util.HashMap; 14 import java.util.Map; 15 16 /*** 17 * TODO document MockFilterConfig 18 * 19 * <!-- $Id: MockFilterConfig.java,v 1.3 2002/10/09 21:37:37 tirsen Exp $ --> 20 * 21 * @author $Author: tirsen $ 22 * @version $Revision: 1.3 $ 23 */ 24 public class MockFilterConfig implements FilterConfig 25 { 26 private Map initParameters = new HashMap(); 27 28 public String getFilterName() 29 { 30 // TODO implement MockFilterConfig.getFilterName 31 throw new RuntimeException("MockFilterConfig.getFilterName is not implemented yet."); 32 } 33 34 public ServletContext getServletContext() 35 { 36 // TODO implement MockFilterConfig.getServletContext 37 throw new RuntimeException("MockFilterConfig.getServletContext is not implemented yet."); 38 } 39 40 public String getInitParameter(String property) 41 { 42 return (String) initParameters.get(property); 43 } 44 45 public void setInitParameter(String property, String value) 46 { 47 initParameters.put(property, value); 48 } 49 50 public Enumeration getInitParameterNames() 51 { 52 // TODO implement MockFilterConfig.getInitParameterNames 53 throw new RuntimeException("MockFilterConfig.getInitParameterNames is not implemented yet."); 54 } 55 56 }

This page was automatically generated by Maven