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 15 public class TitleKeyWebWorkTest extends AbstractTitleKeyTest 16 { 17 18 21 public String getJspName() 22 { 23 return super.getJspName() + ".webwork"; 24 } 25 26 29 protected String getExpectedSuffix() 30 { 31 return " webwork"; 32 } 33 34 37 protected I18nResourceProvider getI18nResourceProvider() 38 { 39 return new I18nWebworkAdapter(); 40 } 41 42 45 protected LocaleResolver getResolver() 46 { 47 return new I18nWebworkAdapter(); 48 } 49 50 53 public void doTest(String jspName) throws Exception 54 { 55 this.runner.registerServlet("*.webwork", ServletDispatcher.class.getName()); 56 super.doTest(jspName); 57 } 58 59 } 60 | Popular Tags |