KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > dispatcher > ServletDispatcherTest


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 /*
6  * Created on 2/10/2003
7  *
8  */

9 package com.opensymphony.webwork.dispatcher;
10
11 import java.util.HashMap JavaDoc;
12 import java.util.Map JavaDoc;
13
14
15 /**
16  * @author CameronBraid
17  */

18 public class ServletDispatcherTest extends AbstractServletDispatcherTestCase {
19     //~ Methods ////////////////////////////////////////////////////////////////
20

21     /* (non-Javadoc)
22      * @see com.opensymphony.webwork.dispatcher.AbstractServletDispatcherTest#getConfigFilename()
23      */

24     public String JavaDoc getConfigFilename() {
25         return "com/opensymphony/webwork/dispatcher/ServletDispatcherTest-xwork.xml";
26     }
27
28     /* (non-Javadoc)
29      * @see com.opensymphony.webwork.dispatcher.AbstractServletDispatcherTest#getServletDispatcher()
30      */

31     public ServletDispatcher getServletDispatcher() {
32         return new ServletDispatcher();
33     }
34
35     /* (non-Javadoc)
36      * @see com.opensymphony.webwork.dispatcher.AbstractServletDispatcherTest#getServletPath()
37      */

38     public String JavaDoc getServletPath() {
39         return "/Test.action";
40     }
41
42 // public void testEncodingAndLocaleSetFromWebWorkProperties() throws IOException, ServletException {
43
// testServletDispatcher();
44
// assertEquals("ISO-8859-1",ServletDispatcher.getEncoding());
45
// assertEquals(Locale.GERMANY,ServletDispatcher.getLocale());
46
// }
47

48     /* (non-Javadoc)
49      * @see com.opensymphony.webwork.dispatcher.AbstractServletDispatcherTestCase#getParameterMap()
50      */

51     protected Map JavaDoc getParameterMap() {
52         Map JavaDoc map = new HashMap JavaDoc();
53         map.put("foo", "bar");
54
55         return map;
56     }
57 }
58
Popular Tags