1 18 package org.apache.struts.taglib.html; 19 20 import java.util.Locale ; 21 22 import javax.servlet.jsp.PageContext ; 23 import junit.framework.Test; 24 import junit.framework.TestSuite; 25 26 import org.apache.cactus.JspTestCase; 27 import org.apache.struts.Globals; 28 29 34 public class TestResetTag1 extends JspTestCase { 35 36 41 public TestResetTag1(String theName) { 42 super(theName); 43 } 44 45 50 public static void main(String [] theArgs) { 51 junit.awtui.TestRunner.main(new String [] {TestResetTag1.class.getName()}); 52 } 53 54 58 public static Test suite() { 59 return new TestSuite(TestResetTag1.class); 61 } 62 63 private void runMyTest(String whichTest, String locale) throws Exception { 64 pageContext.setAttribute(Globals.LOCALE_KEY, new Locale (locale, locale), PageContext.SESSION_SCOPE); 65 request.setAttribute("runTest", whichTest); 66 pageContext.forward("/test/org/apache/struts/taglib/html/TestResetTag1.jsp"); } 67 68 71 public void testResetProperty() throws Exception { 72 runMyTest("testResetProperty", ""); 73 } 74 public void testResetPropertyAccesskey() throws Exception { 75 runMyTest("testResetPropertyAccesskey", ""); 76 } 77 public void testResetPropertyAlt() throws Exception { 78 runMyTest("testResetPropertyAlt", ""); 79 } 80 public void testResetPropertyAltKey1() throws Exception { 81 runMyTest("testResetPropertyAltKey1", ""); 82 } 83 public void testResetPropertyAltKey2() throws Exception { 84 runMyTest("testResetPropertyAltKey2", ""); 85 } 86 public void testResetPropertyAltKey3() throws Exception { 87 runMyTest("testResetPropertyAltKey3", ""); 88 } 89 public void testResetPropertyAltKey_fr1() throws Exception { 90 runMyTest("testResetPropertyAltKey1_fr", "fr"); 91 } 92 public void testResetPropertyAltKey_fr2() throws Exception { 93 runMyTest("testResetPropertyAltKey2_fr", "fr"); 94 } 95 public void testResetPropertyDisabled_True() throws Exception { 96 runMyTest("testResetPropertyDisabled_True", ""); 97 } 98 public void testResetPropertyDisabled_False1() throws Exception { 99 runMyTest("testResetPropertyDisabled_False1", ""); 100 } 101 public void testResetPropertyDisabled_False2() throws Exception { 102 runMyTest("testResetPropertyDisabled_False2", ""); 103 } 104 public void testResetPropertyOnblur() throws Exception { 105 runMyTest("testResetPropertyOnblur", ""); 106 } 107 public void testResetPropertyOnchange() throws Exception { 108 runMyTest("testResetPropertyOnchange", ""); 109 } 110 public void testResetPropertyOnclick() throws Exception { 111 runMyTest("testResetPropertyOnclick", ""); 112 } 113 public void testResetPropertyOndblclick() throws Exception { 114 runMyTest("testResetPropertyOndblclick", ""); 115 } 116 public void testResetPropertyOnfocus() throws Exception { 117 runMyTest("testResetPropertyOnfocus", ""); 118 } 119 public void testResetPropertyOnkeydown() throws Exception { 120 runMyTest("testResetPropertyOnkeydown", ""); 121 } 122 public void testResetPropertyOnkeypress() throws Exception { 123 runMyTest("testResetPropertyOnkeypress", ""); 124 } 125 public void testResetPropertyOnkeyup() throws Exception { 126 runMyTest("testResetPropertyOnkeyup", ""); 127 } 128 public void testResetPropertyOnmousedown() throws Exception { 129 runMyTest("testResetPropertyOnmousedown", ""); 130 } 131 public void testResetPropertyOnmousemove() throws Exception { 132 runMyTest("testResetPropertyOnmousemove", ""); 133 } 134 public void testResetPropertyOnmouseout() throws Exception { 135 runMyTest("testResetPropertyOnmouseout", ""); 136 } 137 public void testResetPropertyOnmouseover() throws Exception { 138 runMyTest("testResetPropertyOnmouseover", ""); 139 } 140 public void testResetPropertyOnmouseup() throws Exception { 141 runMyTest("testResetPropertyOnmouseup", ""); 142 } 143 144 } 145 | Popular Tags |