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 45 public class TestCheckboxTag1 extends JspTestCase { 46 47 52 public TestCheckboxTag1(String theName) { 53 super(theName); 54 } 55 56 61 public static void main(String [] theArgs) { 62 junit.awtui.TestRunner.main(new String [] {TestCheckboxTag1.class.getName()}); 63 } 64 65 69 public static Test suite() { 70 return new TestSuite(TestCheckboxTag1.class); 72 } 73 74 private void runMyTest(String whichTest, String locale) throws Exception { 75 pageContext.setAttribute(Globals.LOCALE_KEY, new Locale (locale, locale), PageContext.SESSION_SCOPE); 76 pageContext.setAttribute(Constants.BEAN_KEY, new SimpleBeanForTesting(true), PageContext.REQUEST_SCOPE); 77 request.setAttribute("runTest", whichTest); 78 pageContext.forward("/test/org/apache/struts/taglib/html/TestCheckboxTag1.jsp"); 79 } 80 81 84 public void testCheckboxPropertybooleanTrue() throws Exception { 85 runMyTest("testCheckboxPropertybooleanTrue", ""); 86 } 87 public void testCheckboxPropertybooleanTrueAccesskey() throws Exception { 88 runMyTest("testCheckboxPropertybooleanTrueAccesskey", ""); 89 } 90 public void testCheckboxPropertybooleanTrueAlt() throws Exception { 91 runMyTest("testCheckboxPropertybooleanTrueAlt", ""); 92 } 93 public void testCheckboxPropertybooleanTrueAltKey1() throws Exception { 94 runMyTest("testCheckboxPropertybooleanTrueAltKey1", ""); 95 } 96 public void testCheckboxPropertybooleanTrueAltKey2() throws Exception { 97 runMyTest("testCheckboxPropertybooleanTrueAltKey2", ""); 98 } 99 public void testCheckboxPropertybooleanTrueAltKey3() throws Exception { 100 runMyTest("testCheckboxPropertybooleanTrueAltKey3", ""); 101 } 102 public void testCheckboxPropertybooleanTrueAltKey_fr1() throws Exception { 103 runMyTest("testCheckboxPropertybooleanTrueAltKey1_fr", "fr"); 104 } 105 public void testCheckboxPropertybooleanTrueAltKey_fr2() throws Exception { 106 runMyTest("testCheckboxPropertybooleanTrueAltKey2_fr", "fr"); 107 } 108 public void testCheckboxPropertybooleanTrueDisabled_True() throws Exception { 109 runMyTest("testCheckboxPropertybooleanTrueDisabled_True", ""); 110 } 111 public void testCheckboxPropertybooleanTrueDisabled_False1() throws Exception { 112 runMyTest("testCheckboxPropertybooleanTrueDisabled_False1", ""); 113 } 114 public void testCheckboxPropertybooleanTrueDisabled_False2() throws Exception { 115 runMyTest("testCheckboxPropertybooleanTrueDisabled_False2", ""); 116 } 117 public void testCheckboxPropertybooleanTrueOnblur() throws Exception { 118 runMyTest("testCheckboxPropertybooleanTrueOnblur", ""); 119 } 120 121 public void testCheckboxPropertybooleanTrueOnchange() throws Exception { 122 runMyTest("testCheckboxPropertybooleanTrueOnchange", ""); 123 } 124 125 public void testCheckboxPropertybooleanTrueOnclick() throws Exception { 126 runMyTest("testCheckboxPropertybooleanTrueOnclick", ""); 127 } 128 129 public void testCheckboxPropertybooleanTrueOndblclick() throws Exception { 130 runMyTest("testCheckboxPropertybooleanTrueOndblclick", ""); 131 } 132 133 public void testCheckboxPropertybooleanTrueOnfocus() throws Exception { 134 runMyTest("testCheckboxPropertybooleanTrueOnfocus", ""); 135 } 136 137 public void testCheckboxPropertybooleanTrueOnkeydown() throws Exception { 138 runMyTest("testCheckboxPropertybooleanTrueOnkeydown", ""); 139 } 140 141 public void testCheckboxPropertybooleanTrueOnkeypress() throws Exception { 142 runMyTest("testCheckboxPropertybooleanTrueOnkeypress", ""); 143 } 144 145 public void testCheckboxPropertybooleanTrueOnkeyup() throws Exception { 146 runMyTest("testCheckboxPropertybooleanTrueOnkeyup", ""); 147 } 148 149 public void testCheckboxPropertybooleanTrueOnmousedown() throws Exception { 150 runMyTest("testCheckboxPropertybooleanTrueOnmousedown", ""); 151 } 152 153 public void testCheckboxPropertybooleanTrueOnmousemove() throws Exception { 154 runMyTest("testCheckboxPropertybooleanTrueOnmousemove", ""); 155 } 156 157 public void testCheckboxPropertybooleanTrueOnmouseout() throws Exception { 158 runMyTest("testCheckboxPropertybooleanTrueOnmouseout", ""); 159 } 160 161 public void testCheckboxPropertybooleanTrueOnmouseover() throws Exception { 162 runMyTest("testCheckboxPropertybooleanTrueOnmouseover", ""); 163 } 164 165 public void testCheckboxPropertybooleanTrueOnmouseup() throws Exception { 166 runMyTest("testCheckboxPropertybooleanTrueOnmouseup", ""); 167 } 168 169 } 170 | Popular Tags |