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 TestButtonTag1 extends JspTestCase { 35 36 41 public TestButtonTag1(String theName) { 42 super(theName); 43 } 44 45 50 public static void main(String [] theArgs) { 51 junit.awtui.TestRunner.main(new String [] {TestButtonTag1.class.getName()}); 52 } 53 54 58 public static Test suite() { 59 return new TestSuite(TestButtonTag1.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/TestButtonTag1.jsp"); } 67 68 71 public void testButtonProperty() throws Exception { 72 runMyTest("testButtonProperty", ""); 73 } 74 public void testButtonPropertyAccesskey() throws Exception { 75 runMyTest("testButtonPropertyAccesskey", ""); 76 } 77 public void testButtonPropertyAlt() throws Exception { 78 runMyTest("testButtonPropertyAlt", ""); 79 } 80 public void testButtonPropertyAltKey1() throws Exception { 81 runMyTest("testButtonPropertyAltKey1", ""); 82 } 83 public void testButtonPropertyAltKey2() throws Exception { 84 runMyTest("testButtonPropertyAltKey2", ""); 85 } 86 public void testButtonPropertyAltKey3() throws Exception { 87 runMyTest("testButtonPropertyAltKey3", ""); 88 } 89 public void testButtonPropertyAltKey_fr1() throws Exception { 90 runMyTest("testButtonPropertyAltKey1_fr", "fr"); 91 } 92 public void testButtonPropertyAltKey_fr2() throws Exception { 93 runMyTest("testButtonPropertyAltKey2_fr", "fr"); 94 } 95 public void testButtonPropertyDisabled_True() throws Exception { 96 runMyTest("testButtonPropertyDisabled_True", ""); 97 } 98 public void testButtonPropertyDisabled_False1() throws Exception { 99 runMyTest("testButtonPropertyDisabled_False1", ""); 100 } 101 public void testButtonPropertyDisabled_False2() throws Exception { 102 runMyTest("testButtonPropertyDisabled_False2", ""); 103 } 104 public void testButtonPropertyOnblur() throws Exception { 105 runMyTest("testButtonPropertyOnblur", ""); 106 } 107 108 public void testButtonPropertyOnchange() throws Exception { 109 runMyTest("testButtonPropertyOnchange", ""); 110 } 111 112 public void testButtonPropertyOnclick() throws Exception { 113 runMyTest("testButtonPropertyOnclick", ""); 114 } 115 116 public void testButtonPropertyOndblclick() throws Exception { 117 runMyTest("testButtonPropertyOndblclick", ""); 118 } 119 120 public void testButtonPropertyOnfocus() throws Exception { 121 runMyTest("testButtonPropertyOnfocus", ""); 122 } 123 124 public void testButtonPropertyOnkeydown() throws Exception { 125 runMyTest("testButtonPropertyOnkeydown", ""); 126 } 127 128 public void testButtonPropertyOnkeypress() throws Exception { 129 runMyTest("testButtonPropertyOnkeypress", ""); 130 } 131 132 public void testButtonPropertyOnkeyup() throws Exception { 133 runMyTest("testButtonPropertyOnkeyup", ""); 134 } 135 136 public void testButtonPropertyOnmousedown() throws Exception { 137 runMyTest("testButtonPropertyOnmousedown", ""); 138 } 139 140 public void testButtonPropertyOnmousemove() throws Exception { 141 runMyTest("testButtonPropertyOnmousemove", ""); 142 } 143 144 public void testButtonPropertyOnmouseout() throws Exception { 145 runMyTest("testButtonPropertyOnmouseout", ""); 146 } 147 148 public void testButtonPropertyOnmouseover() throws Exception { 149 runMyTest("testButtonPropertyOnmouseover", ""); 150 } 151 152 public void testButtonPropertyOnmouseup() throws Exception { 153 runMyTest("testButtonPropertyOnmouseup", ""); 154 } 155 156 } 157 | Popular Tags |