1 package org.displaytag.properties; 2 3 import org.displaytag.localization.I18nResourceProvider; 4 import org.displaytag.localization.I18nSpringAdapter; 5 import org.displaytag.localization.LocaleResolver; 6 import org.springframework.web.servlet.DispatcherServlet; 7 8 9 14 public class TitleKeySpringTest extends AbstractTitleKeyTest 15 { 16 17 20 public String getJspName() 21 { 22 return super.getJspName() + ".spring"; 23 } 24 25 28 protected String getExpectedSuffix() 29 { 30 return " spring"; 31 } 32 33 36 protected I18nResourceProvider getI18nResourceProvider() 37 { 38 return new I18nSpringAdapter(); 39 } 40 41 44 protected LocaleResolver getResolver() 45 { 46 return new I18nSpringAdapter(); 47 } 48 49 52 public void doTest(String jspName) throws Exception 53 { 54 this.runner.registerServlet("*.spring", DispatcherServlet.class.getName()); 55 super.doTest(jspName); 56 } 57 58 } 59 | Popular Tags |