01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: /*
06: * Created on 2/10/2003
07: *
08: */
09: package com.opensymphony.webwork.dispatcher;
10:
11: import java.util.HashMap;
12: import java.util.Map;
13:
14: /**
15: * @author CameronBraid
16: */
17: public class ServletDispatcherTest extends
18: AbstractServletDispatcherTestCase {
19: public String getConfigFilename() {
20: return "com/opensymphony/webwork/dispatcher/ServletDispatcherTest-xwork.xml";
21: }
22:
23: public ServletDispatcher getServletDispatcher() {
24: return new ServletDispatcher();
25: }
26:
27: public String getServletPath() {
28: return "/Test.action";
29: }
30:
31: // public void testEncodingAndLocaleSetFromWebWorkProperties() throws IOException, ServletException {
32: // testServletDispatcher();
33: // assertEquals("ISO-8859-1",ServletDispatcher.getEncoding());
34: // assertEquals(Locale.GERMANY,ServletDispatcher.getLocale());
35: // }
36:
37: protected Map getParameterMap() {
38: Map map = new HashMap();
39: map.put("foo", "bar");
40:
41: return map;
42: }
43: }
|