|
|||||||||||||||||||
Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
MockFilterConfig.java | - | 40% | 40% | 40% |
|
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 | 0 |
public String getFilterName() |
29 |
{ |
|
30 |
// TODO implement MockFilterConfig.getFilterName |
|
31 | 0 |
throw new RuntimeException("MockFilterConfig.getFilterName is not implemented yet."); |
32 |
} |
|
33 |
|
|
34 | 0 |
public ServletContext getServletContext() |
35 |
{ |
|
36 |
// TODO implement MockFilterConfig.getServletContext |
|
37 | 0 |
throw new RuntimeException("MockFilterConfig.getServletContext is not implemented yet."); |
38 |
} |
|
39 |
|
|
40 | 2 |
public String getInitParameter(String property) |
41 |
{ |
|
42 | 2 |
return (String) initParameters.get(property); |
43 |
} |
|
44 |
|
|
45 | 1 |
public void setInitParameter(String property, String value) |
46 |
{ |
|
47 | 1 |
initParameters.put(property, value); |
48 |
} |
|
49 |
|
|
50 | 0 |
public Enumeration getInitParameterNames() |
51 |
{ |
|
52 |
// TODO implement MockFilterConfig.getInitParameterNames |
|
53 | 0 |
throw new RuntimeException("MockFilterConfig.getInitParameterNames is not implemented yet."); |
54 |
} |
|
55 |
|
|
56 |
} |
|
57 |
|
|