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 TestCheckboxTag3 extends JspTestCase { 36 37 42 public TestCheckboxTag3(String theName) { 43 super(theName); 44 } 45 46 51 public static void main(String [] theArgs) { 52 junit.awtui.TestRunner.main(new String [] {TestCheckboxTag3.class.getName()}); 53 } 54 55 59 public static Test suite() { 60 return new TestSuite(TestCheckboxTag3.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(false), PageContext.REQUEST_SCOPE); 67 request.setAttribute("runTest", whichTest); 68 pageContext.forward("/test/org/apache/struts/taglib/html/TestCheckboxTag3.jsp"); 69 } 70 71 74 public void testCheckboxPropertybooleanFalse() throws Exception { 75 runMyTest("testCheckboxPropertybooleanFalse", ""); 76 } 77 public void testCheckboxPropertybooleanFalseAccesskey() throws Exception { 78 runMyTest("testCheckboxPropertybooleanFalseAccesskey", ""); 79 } 80 public void testCheckboxPropertybooleanFalseAlt() throws Exception { 81 runMyTest("testCheckboxPropertybooleanFalseAlt", ""); 82 } 83 public void testCheckboxPropertybooleanFalseAltKey1() throws Exception { 84 runMyTest("testCheckboxPropertybooleanFalseAltKey1", ""); 85 } 86 public void testCheckboxPropertybooleanFalseAltKey2() throws Exception { 87 runMyTest("testCheckboxPropertybooleanFalseAltKey2", ""); 88 } 89 public void testCheckboxPropertybooleanFalseAltKey_fr1() throws Exception { 90 runMyTest("testCheckboxPropertybooleanFalseAltKey1_fr", "fr"); 91 } 92 public void testCheckboxPropertybooleanFalseAltKey_fr2() throws Exception { 93 runMyTest("testCheckboxPropertybooleanFalseAltKey2_fr", "fr"); 94 } 95 public void testCheckboxPropertybooleanFalseDisabled_True() throws Exception { 96 runMyTest("testCheckboxPropertybooleanFalseDisabled_True", ""); 97 } 98 public void testCheckboxPropertybooleanFalseDisabled_False1() throws Exception { 99 runMyTest("testCheckboxPropertybooleanFalseDisabled_False1", ""); 100 } 101 public void testCheckboxPropertybooleanFalseDisabled_False2() throws Exception { 102 runMyTest("testCheckboxPropertybooleanFalseDisabled_False2", ""); 103 } 104 public void testCheckboxPropertybooleanFalseOnblur() throws Exception { 105 runMyTest("testCheckboxPropertybooleanFalseOnblur", ""); 106 } 107 108 public void testCheckboxPropertybooleanFalseOnchange() throws Exception { 109 runMyTest("testCheckboxPropertybooleanFalseOnchange", ""); 110 } 111 112 public void testCheckboxPropertybooleanFalseOnclick() throws Exception { 113 runMyTest("testCheckboxPropertybooleanFalseOnclick", ""); 114 } 115 116 public void testCheckboxPropertybooleanFalseOndblclick() throws Exception { 117 runMyTest("testCheckboxPropertybooleanFalseOndblclick", ""); 118 } 119 120 public void testCheckboxPropertybooleanFalseOnfocus() throws Exception { 121 runMyTest("testCheckboxPropertybooleanFalseOnfocus", ""); 122 } 123 124 public void testCheckboxPropertybooleanFalseOnkeydown() throws Exception { 125 runMyTest("testCheckboxPropertybooleanFalseOnkeydown", ""); 126 } 127 128 public void testCheckboxPropertybooleanFalseOnkeypress() throws Exception { 129 runMyTest("testCheckboxPropertybooleanFalseOnkeypress", ""); 130 } 131 132 public void testCheckboxPropertybooleanFalseOnkeyup() throws Exception { 133 runMyTest("testCheckboxPropertybooleanFalseOnkeyup", ""); 134 } 135 136 public void testCheckboxPropertybooleanFalseOnmousedown() throws Exception { 137 runMyTest("testCheckboxPropertybooleanFalseOnmousedown", ""); 138 } 139 140 public void testCheckboxPropertybooleanFalseOnmousemove() throws Exception { 141 runMyTest("testCheckboxPropertybooleanFalseOnmousemove", ""); 142 } 143 144 public void testCheckboxPropertybooleanFalseOnmouseout() throws Exception { 145 runMyTest("testCheckboxPropertybooleanFalseOnmouseout", ""); 146 } 147 148 public void testCheckboxPropertybooleanFalseOnmouseover() throws Exception { 149 runMyTest("testCheckboxPropertybooleanFalseOnmouseover", ""); 150 } 151 152 public void testCheckboxPropertybooleanFalseOnmouseup() throws Exception { 153 runMyTest("testCheckboxPropertybooleanFalseOnmouseup", ""); 154 } 155 156 } 157 | Popular Tags |