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 54 public class TestMultiboxTag4 extends JspTestCase { 55 56 61 public TestMultiboxTag4(String theName) { 62 super(theName); 63 } 64 65 70 public static void main(String [] theArgs) { 71 junit.awtui.TestRunner.main(new String [] {TestMultiboxTag4.class.getName()}); 72 } 73 74 78 public static Test suite() { 79 return new TestSuite(TestMultiboxTag4.class); 81 } 82 83 private void runMyTest(String whichTest, String locale) throws Exception { 84 pageContext.setAttribute(Globals.LOCALE_KEY, 85 new Locale (locale, locale), 86 PageContext.SESSION_SCOPE); 87 88 String [] s = new String [7]; 89 for(int i = 1; i < 7; i++){ 90 s[i] = "value" + i; 91 } 92 SimpleBeanForTesting sbft = new SimpleBeanForTesting(s); 93 94 pageContext.setAttribute(Constants.BEAN_KEY, sbft, PageContext.REQUEST_SCOPE); 95 request.setAttribute("runTest", whichTest); 96 pageContext.forward("/test/org/apache/struts/taglib/html/TestMultiboxTag4.jsp"); 97 } 98 99 102 public void testMultiboxBodyPropertyFalse() throws Exception { 103 runMyTest("testMultiboxBodyPropertyFalse", ""); 104 } 105 public void testMultiboxBodyPropertyFalseAccesskey() throws Exception { 106 runMyTest("testMultiboxBodyPropertyFalseAccesskey", ""); 107 } 108 public void testMultiboxBodyPropertyFalseAlt() throws Exception { 109 runMyTest("testMultiboxBodyPropertyFalseAlt", ""); 110 } 111 public void testMultiboxBodyPropertyFalseAltKey1() throws Exception { 112 runMyTest("testMultiboxBodyPropertyFalseAltKey1", ""); 113 } 114 public void testMultiboxBodyPropertyFalseAltKey2() throws Exception { 115 runMyTest("testMultiboxBodyPropertyFalseAltKey2", ""); 116 } 117 public void testMultiboxBodyPropertyFalseAltKey_fr1() throws Exception { 118 runMyTest("testMultiboxBodyPropertyFalseAltKey1_fr", "fr"); 119 } 120 public void testMultiboxBodyPropertyFalseAltKey_fr2() throws Exception { 121 runMyTest("testMultiboxBodyPropertyFalseAltKey2_fr", "fr"); 122 } 123 public void testMultiboxBodyPropertyFalseDisabled_False() throws Exception { 124 runMyTest("testMultiboxBodyPropertyFalseDisabled_True", ""); 125 } 126 public void testMultiboxBodyPropertyFalseDisabled_False1() throws Exception { 127 runMyTest("testMultiboxBodyPropertyFalseDisabled_False1", ""); 128 } 129 public void testMultiboxBodyPropertyFalseDisabled_False2() throws Exception { 130 runMyTest("testMultiboxBodyPropertyFalseDisabled_False2", ""); 131 } 132 public void testMultiboxBodyPropertyFalseOnblur() throws Exception { 133 runMyTest("testMultiboxBodyPropertyFalseOnblur", ""); 134 } 135 136 public void testMultiboxBodyPropertyFalseOnchange() throws Exception { 137 runMyTest("testMultiboxBodyPropertyFalseOnchange", ""); 138 } 139 140 public void testMultiboxBodyPropertyFalseOnclick() throws Exception { 141 runMyTest("testMultiboxBodyPropertyFalseOnclick", ""); 142 } 143 144 public void testMultiboxBodyPropertyFalseOndblclick() throws Exception { 145 runMyTest("testMultiboxBodyPropertyFalseOndblclick", ""); 146 } 147 148 public void testMultiboxBodyPropertyFalseOnfocus() throws Exception { 149 runMyTest("testMultiboxBodyPropertyFalseOnfocus", ""); 150 } 151 152 public void testMultiboxBodyPropertyFalseOnkeydown() throws Exception { 153 runMyTest("testMultiboxBodyPropertyFalseOnkeydown", ""); 154 } 155 156 public void testMultiboxBodyPropertyFalseOnkeypress() throws Exception { 157 runMyTest("testMultiboxBodyPropertyFalseOnkeypress", ""); 158 } 159 160 public void testMultiboxBodyPropertyFalseOnkeyup() throws Exception { 161 runMyTest("testMultiboxBodyPropertyFalseOnkeyup", ""); 162 } 163 164 public void testMultiboxBodyPropertyFalseOnmousedown() throws Exception { 165 runMyTest("testMultiboxBodyPropertyFalseOnmousedown", ""); 166 } 167 168 public void testMultiboxBodyPropertyFalseOnmousemove() throws Exception { 169 runMyTest("testMultiboxBodyPropertyFalseOnmousemove", ""); 170 } 171 172 public void testMultiboxBodyPropertyFalseOnmouseout() throws Exception { 173 runMyTest("testMultiboxBodyPropertyFalseOnmouseout", ""); 174 } 175 176 public void testMultiboxBodyPropertyFalseOnmouseover() throws Exception { 177 runMyTest("testMultiboxBodyPropertyFalseOnmouseover", ""); 178 } 179 180 public void testMultiboxBodyPropertyFalseOnmouseup() throws Exception { 181 runMyTest("testMultiboxBodyPropertyFalseOnmouseup", ""); 182 } 183 184 } 185 | Popular Tags |