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 29 34 public class TestCancelTag1 extends JspTestCase { 35 36 41 public TestCancelTag1(String theName) { 42 super(theName); 43 } 44 45 50 public static void main(String [] theArgs) { 51 junit.awtui.TestRunner.main(new String [] {TestCancelTag1.class.getName()}); 52 } 53 54 58 public static Test suite() { 59 return new TestSuite(TestCancelTag1.class); 61 } 62 63 private void runMyTest(String whichTest, String locale) throws Exception { 64 pageContext.setAttribute(Globals.LOCALE_KEY, new Locale (locale, locale), PageContext.SESSION_SCOPE); 65 request.setAttribute("runTest", whichTest); 66 pageContext.forward("/test/org/apache/struts/taglib/html/TestCancelTag1.jsp"); 67 } 68 69 72 public void testCancelAccesskey() throws Exception { 73 runMyTest("testCancelAccesskey", ""); 74 } 75 public void testCancelAlt() throws Exception { 76 runMyTest("testCancelAlt", ""); 77 } 78 public void testCancelAltKey1() throws Exception { 79 runMyTest("testCancelAltKey1", ""); 80 } 81 public void testCancelAltKey2() throws Exception { 82 runMyTest("testCancelAltKey2", ""); 83 } 84 public void testCancelAltKey3() throws Exception { 85 runMyTest("testCancelAltKey3", ""); 86 } 87 public void testCancelAltKey_fr1() throws Exception { 88 runMyTest("testCancelAltKey1_fr", "fr"); 89 } 90 public void testCancelAltKey_fr2() throws Exception { 91 runMyTest("testCancelAltKey2_fr", "fr"); 92 } 93 public void testCancelDisabled_True() throws Exception { 94 runMyTest("testCancelDisabled_True", ""); 95 } 96 public void testCancelDisabled_False1() throws Exception { 97 runMyTest("testCancelDisabled_False1", ""); 98 } 99 public void testCancelDisabled_False2() throws Exception { 100 runMyTest("testCancelDisabled_False2", ""); 101 } 102 public void testCancelOnblur() throws Exception { 103 runMyTest("testCancelOnblur", ""); 104 } 105 106 public void testCancelOnchange() throws Exception { 107 runMyTest("testCancelOnchange", ""); 108 } 109 110 public void testCancelOnclick() throws Exception { 111 runMyTest("testCancelOnclick", ""); 112 } 113 114 public void testCancelOndblclick() throws Exception { 115 runMyTest("testCancelOndblclick", ""); 116 } 117 118 public void testCancelOnfocus() throws Exception { 119 runMyTest("testCancelOnfocus", ""); 120 } 121 122 public void testCancelOnkeydown() throws Exception { 123 runMyTest("testCancelOnkeydown", ""); 124 } 125 126 public void testCancelOnkeypress() throws Exception { 127 runMyTest("testCancelOnkeypress", ""); 128 } 129 130 public void testCancelOnkeyup() throws Exception { 131 runMyTest("testCancelOnkeyup", ""); 132 } 133 134 public void testCancelOnmousedown() throws Exception { 135 runMyTest("testCancelOnmousedown", ""); 136 } 137 138 public void testCancelOnmousemove() throws Exception { 139 runMyTest("testCancelOnmousemove", ""); 140 } 141 142 public void testCancelOnmouseout() throws Exception { 143 runMyTest("testCancelOnmouseout", ""); 144 } 145 146 public void testCancelOnmouseover() throws Exception { 147 runMyTest("testCancelOnmouseover", ""); 148 } 149 150 public void testCancelOnmouseup() throws Exception { 151 runMyTest("testCancelOnmouseup", ""); 152 } 153 154 } 155 | Popular Tags |