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 53 public class TestMultiboxTag3 extends JspTestCase { 54 55 60 public TestMultiboxTag3(String theName) { 61 super(theName); 62 } 63 64 69 public static void main(String [] theArgs) { 70 junit.awtui.TestRunner.main(new String [] {TestMultiboxTag3.class.getName()}); 71 } 72 73 77 public static Test suite() { 78 return new TestSuite(TestMultiboxTag3.class); 80 } 81 82 private void runMyTest(String whichTest, String locale) throws Exception { 83 pageContext.setAttribute(Globals.LOCALE_KEY, 84 new Locale (locale, locale), 85 PageContext.SESSION_SCOPE); 86 87 String [] s = new String [7]; 88 for(int i = 1; i < 7; i++){ 89 s[i] = "value" + i; 90 } 91 SimpleBeanForTesting sbft = new SimpleBeanForTesting(s); 92 93 pageContext.setAttribute(Constants.BEAN_KEY, sbft, PageContext.REQUEST_SCOPE); 94 request.setAttribute("runTest", whichTest); 95 } 96 97 100 public void testMultiboxPropertyFalse() throws Exception { 101 runMyTest("testMultiboxPropertyFalse", ""); 102 } 103 public void testMultiboxPropertyFalseAccesskey() throws Exception { 104 runMyTest("testMultiboxPropertyFalseAccesskey", ""); 105 } 106 public void testMultiboxPropertyFalseAlt() throws Exception { 107 runMyTest("testMultiboxPropertyFalseAlt", ""); 108 } 109 public void testMultiboxPropertyFalseAltKey1() throws Exception { 110 runMyTest("testMultiboxPropertyFalseAltKey1", ""); 111 } 112 public void testMultiboxPropertyFalseAltKey2() throws Exception { 113 runMyTest("testMultiboxPropertyFalseAltKey2", ""); 114 } 115 public void testMultiboxPropertyFalseAltKey_fr1() throws Exception { 116 runMyTest("testMultiboxPropertyFalseAltKey1_fr", "fr"); 117 } 118 public void testMultiboxPropertyFalseAltKey_fr2() throws Exception { 119 runMyTest("testMultiboxPropertyFalseAltKey2_fr", "fr"); 120 } 121 public void testMultiboxPropertyFalseDisabled_True() throws Exception { 122 runMyTest("testMultiboxPropertyFalseDisabled_True", ""); 123 } 124 public void testMultiboxPropertyFalseDisabled_False1() throws Exception { 125 runMyTest("testMultiboxPropertyFalseDisabled_False1", ""); 126 } 127 public void testMultiboxPropertyFalseDisabled_False2() throws Exception { 128 runMyTest("testMultiboxPropertyFalseDisabled_False2", ""); 129 } 130 public void testMultiboxPropertyFalseOnblur() throws Exception { 131 runMyTest("testMultiboxPropertyFalseOnblur", ""); 132 } 133 134 public void testMultiboxPropertyFalseOnchange() throws Exception { 135 runMyTest("testMultiboxPropertyFalseOnchange", ""); 136 } 137 138 public void testMultiboxPropertyFalseOnclick() throws Exception { 139 runMyTest("testMultiboxPropertyFalseOnclick", ""); 140 } 141 142 public void testMultiboxPropertyFalseOndblclick() throws Exception { 143 runMyTest("testMultiboxPropertyFalseOndblclick", ""); 144 } 145 146 public void testMultiboxPropertyFalseOnfocus() throws Exception { 147 runMyTest("testMultiboxPropertyFalseOnfocus", ""); 148 } 149 150 public void testMultiboxPropertyFalseOnkeydown() throws Exception { 151 runMyTest("testMultiboxPropertyFalseOnkeydown", ""); 152 } 153 154 public void testMultiboxPropertyFalseOnkeypress() throws Exception { 155 runMyTest("testMultiboxPropertyFalseOnkeypress", ""); 156 } 157 158 public void testMultiboxPropertyFalseOnkeyup() throws Exception { 159 runMyTest("testMultiboxPropertyFalseOnkeyup", ""); 160 } 161 162 public void testMultiboxPropertyFalseOnmousedown() throws Exception { 163 runMyTest("testMultiboxPropertyFalseOnmousedown", ""); 164 } 165 166 public void testMultiboxPropertyFalseOnmousemove() throws Exception { 167 runMyTest("testMultiboxPropertyFalseOnmousemove", ""); 168 } 169 170 public void testMultiboxPropertyFalseOnmouseout() throws Exception { 171 runMyTest("testMultiboxPropertyFalseOnmouseout", ""); 172 } 173 174 public void testMultiboxPropertyFalseOnmouseover() throws Exception { 175 runMyTest("testMultiboxPropertyFalseOnmouseover", ""); 176 } 177 178 public void testMultiboxPropertyFalseOnmouseup() throws Exception { 179 runMyTest("testMultiboxPropertyFalseOnmouseup", ""); 180 } 181 182 } 183 | Popular Tags |