KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.displaytag.properties;
2
3 import org.displaytag.localization.I18nResourceProvider;
4 import org.displaytag.localization.I18nWebworkAdapter;
5 import org.displaytag.localization.LocaleResolver;
6
7 import com.opensymphony.webwork.dispatcher.ServletDispatcher;
8
9
10 /**
11  * I18n test with WebWork adapter.
12  * @author Fabrizio Giustina
13  * @version $Revision: 715 $ ($Author: fgiust $)
14  */

15 public class TitleKeyWebWorkTest extends AbstractTitleKeyTest
16 {
17
18     /**
19      * @see org.displaytag.test.DisplaytagCase#getJspName()
20      */

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

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

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

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

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