KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > displaytag > properties > TitleKeyAutoColumnStrutsTest


1 package org.displaytag.properties;
2
3 import org.apache.struts.action.ActionServlet;
4 import org.displaytag.localization.I18nResourceProvider;
5 import org.displaytag.localization.I18nStrutsAdapter;
6 import org.displaytag.localization.LocaleResolver;
7
8
9 /**
10  * I18n test with Struts adapter.
11  * @author Fabrizio Giustina
12  * @version $Revision: 707 $ ($Author: fgiust $)
13  */

14 public class TitleKeyAutoColumnStrutsTest extends AbstractTitleKeyAutoColumnTest
15 {
16
17     /**
18      * @see org.displaytag.test.DisplaytagCase#getJspName()
19      */

20     public String JavaDoc getJspName()
21     {
22         return super.getJspName() + ".struts";
23     }
24
25     /**
26      * @see org.displaytag.properties.AbstractTitleKeyTest#getExpectedSuffix()
27      */

28     protected String JavaDoc getExpectedSuffix()
29     {
30         return " struts";
31     }
32
33     /**
34      * @see org.displaytag.properties.AbstractTitleKeyTest#getI18nResourceProvider()
35      */

36     protected I18nResourceProvider getI18nResourceProvider()
37     {
38         return new I18nStrutsAdapter();
39     }
40
41     /**
42      * @see org.displaytag.properties.AbstractTitleKeyTest#getResolver()
43      */

44     protected LocaleResolver getResolver()
45     {
46         return new I18nStrutsAdapter();
47     }
48
49     /**
50      * @see org.displaytag.test.DisplaytagCase#doTest(java.lang.String)
51      */

52     public void doTest(String JavaDoc jspName) throws Exception JavaDoc
53     {
54         this.runner.registerServlet("*.struts", ActionServlet.class.getName());
55         super.doTest(jspName);
56     }
57
58 }
59
Popular Tags