1 18 package org.apache.struts.taglib.html; 19 20 import java.util.ArrayList ; 21 import java.util.HashMap ; 22 import java.util.Locale ; 23 import java.util.StringTokenizer ; 24 25 import javax.servlet.jsp.PageContext ; 26 import junit.framework.Test; 27 import junit.framework.TestSuite; 28 29 import org.apache.cactus.JspTestCase; 30 import org.apache.struts.Globals; 31 import org.apache.struts.taglib.SimpleBeanForTesting; 32 33 38 public class TestResetTag2 extends JspTestCase { 39 40 45 public TestResetTag2(String theName) { 46 super(theName); 47 } 48 49 54 public static void main(String [] theArgs) { 55 junit.awtui.TestRunner.main(new String [] {TestResetTag2.class.getName()}); 56 } 57 58 62 public static Test suite() { 63 return new TestSuite(TestResetTag2.class); 65 } 66 67 private void runMyTest(String whichTest, String locale) throws Exception { 68 pageContext.setAttribute(Globals.LOCALE_KEY, new Locale (locale, locale), PageContext.SESSION_SCOPE); 69 request.setAttribute("runTest", whichTest); 70 pageContext.forward("/test/org/apache/struts/taglib/html/TestResetTag2.jsp"); 71 } 72 73 76 77 public void testResetPropertyStyle() throws Exception { 78 runMyTest("testResetPropertyStyle", ""); 79 } 80 public void testResetPropertyStyleClass() throws Exception { 81 runMyTest("testResetPropertyStyleClass", ""); 82 } 83 public void testResetPropertyStyleId() throws Exception { 84 runMyTest("testResetPropertyStyleId", ""); 85 } 86 public void testResetPropertyTabindex() throws Exception { 87 runMyTest("testResetPropertyTabindex", ""); 88 } 89 public void testResetPropertyTitle() throws Exception { 90 runMyTest("testResetPropertyTitle", ""); 91 } 92 public void testResetPropertyTitleKey() throws Exception { 93 runMyTest("testResetPropertyTitleKey", ""); 94 } 95 public void testResetPropertyTitleKey_fr() throws Exception { 96 runMyTest("testResetPropertyTitleKey_fr", "fr"); 97 } 98 public void testResetPropertyValue() throws Exception { 99 runMyTest("testResetPropertyValue", ""); 100 } 101 public void testResetPropertyBodyContent() throws Exception { 102 runMyTest("testResetPropertyBodyContent", ""); 103 } 104 public void testResetPropertyBodyContentMessageKey() throws Exception { 105 runMyTest("testResetPropertyBodyContentMessageKey", ""); 106 } 107 public void testResetPropertyBodyContentMessageKey_fr() throws Exception { 108 runMyTest("testResetPropertyBodyContentMessageKey_fr", "fr"); 109 } 110 111 } 112 | Popular Tags |