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 import org.apache.struts.taglib.SimpleBeanForTesting; 29 30 35 public class TestHiddenTag1 extends JspTestCase { 36 37 42 public TestHiddenTag1(String theName) { 43 super(theName); 44 } 45 46 51 public static void main(String [] theArgs) { 52 junit.awtui.TestRunner.main(new String [] {TestHiddenTag1.class.getName()}); 53 } 54 55 59 public static Test suite() { 60 return new TestSuite(TestHiddenTag1.class); 62 } 63 64 private void runMyTest(String whichTest, String locale) throws Exception { 65 pageContext.setAttribute(Globals.LOCALE_KEY, new Locale (locale, locale), PageContext.SESSION_SCOPE); 66 pageContext.setAttribute(Constants.BEAN_KEY, new SimpleBeanForTesting("Test Value"), PageContext.REQUEST_SCOPE); 67 request.setAttribute("runTest", whichTest); 68 pageContext.forward("/test/org/apache/struts/taglib/html/TestHiddenTag1.jsp"); 69 } 70 71 74 public void testHiddenProperty() throws Exception { 75 runMyTest("testHiddenProperty", ""); 76 } 77 public void testHiddenPropertyAccesskey() throws Exception { 78 runMyTest("testHiddenPropertyAccesskey", ""); 79 } 80 public void testHiddenPropertyAlt() throws Exception { 81 runMyTest("testHiddenPropertyAlt", ""); 82 } 83 public void testHiddenPropertyAltKey1() throws Exception { 84 runMyTest("testHiddenPropertyAltKey1", ""); 85 } 86 public void testHiddenPropertyAltKey2() throws Exception { 87 runMyTest("testHiddenPropertyAltKey2", ""); 88 } 89 public void testHiddenPropertyAltKey3() throws Exception { 90 runMyTest("testHiddenPropertyAltKey3", ""); 91 } 92 public void testHiddenPropertyAltKey_fr1() throws Exception { 93 runMyTest("testHiddenPropertyAltKey1_fr", "fr"); 94 } 95 public void testHiddenPropertyAltKey_fr2() throws Exception { 96 runMyTest("testHiddenPropertyAltKey2_fr", "fr"); 97 } 98 public void testHiddenPropertyOnblur() throws Exception { 99 runMyTest("testHiddenPropertyOnblur", ""); 100 } 101 102 public void testHiddenPropertyOnchange() throws Exception { 103 runMyTest("testHiddenPropertyOnchange", ""); 104 } 105 106 public void testHiddenPropertyOnclick() throws Exception { 107 runMyTest("testHiddenPropertyOnclick", ""); 108 } 109 110 public void testHiddenPropertyOndblclick() throws Exception { 111 runMyTest("testHiddenPropertyOndblclick", ""); 112 } 113 114 public void testHiddenPropertyOnfocus() throws Exception { 115 runMyTest("testHiddenPropertyOnfocus", ""); 116 } 117 118 public void testHiddenPropertyOnkeydown() throws Exception { 119 runMyTest("testHiddenPropertyOnkeydown", ""); 120 } 121 122 public void testHiddenPropertyOnkeypress() throws Exception { 123 runMyTest("testHiddenPropertyOnkeypress", ""); 124 } 125 126 public void testHiddenPropertyOnkeyup() throws Exception { 127 runMyTest("testHiddenPropertyOnkeyup", ""); 128 } 129 130 public void testHiddenPropertyOnmousedown() throws Exception { 131 runMyTest("testHiddenPropertyOnmousedown", ""); 132 } 133 134 public void testHiddenPropertyOnmousemove() throws Exception { 135 runMyTest("testHiddenPropertyOnmousemove", ""); 136 } 137 138 public void testHiddenPropertyOnmouseout() throws Exception { 139 runMyTest("testHiddenPropertyOnmouseout", ""); 140 } 141 142 public void testHiddenPropertyOnmouseover() throws Exception { 143 runMyTest("testHiddenPropertyOnmouseover", ""); 144 } 145 146 public void testHiddenPropertyOnmouseup() throws Exception { 147 runMyTest("testHiddenPropertyOnmouseup", ""); 148 } 149 150 } 151 | Popular Tags |