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 TestFileTag1 extends JspTestCase { 36 37 42 public TestFileTag1(String theName) { 43 super(theName); 44 } 45 46 51 public static void main(String [] theArgs) { 52 junit.awtui.TestRunner.main(new String [] {TestFileTag1.class.getName()}); 53 } 54 55 59 public static Test suite() { 60 return new TestSuite(TestFileTag1.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("Test Value"), PageContext.REQUEST_SCOPE); 67 request.setAttribute("runTest", whichTest); 68 pageContext.forward("/test/org/apache/struts/taglib/html/TestFileTag1.jsp"); 69 } 70 71 74 public void testFileProperty() throws Exception { 75 runMyTest("testFileProperty", ""); 76 } 77 public void testFilePropertyAccept() throws Exception { 78 runMyTest("testFilePropertyAccept", ""); 79 } 80 public void testFilePropertyAccesskey() throws Exception { 81 runMyTest("testFilePropertyAccesskey", ""); 82 } 83 public void testFilePropertyAlt() throws Exception { 84 runMyTest("testFilePropertyAlt", ""); 85 } 86 public void testFilePropertyAltKey1() throws Exception { 87 runMyTest("testFilePropertyAltKey1", ""); 88 } 89 public void testFilePropertyAltKey2() throws Exception { 90 runMyTest("testFilePropertyAltKey2", ""); 91 } 92 public void testFilePropertyAltKey3() throws Exception { 93 runMyTest("testFilePropertyAltKey3", ""); 94 } 95 public void testFilePropertyAltKey_fr1() throws Exception { 96 runMyTest("testFilePropertyAltKey1_fr", "fr"); 97 } 98 public void testFilePropertyAltKey_fr2() throws Exception { 99 runMyTest("testFilePropertyAltKey2_fr", "fr"); 100 } 101 public void testFilePropertyDisabled_True() throws Exception { 102 runMyTest("testFilePropertyDisabled_True", ""); 103 } 104 public void testFilePropertyDisabled_False1() throws Exception { 105 runMyTest("testFilePropertyDisabled_False1", ""); 106 } 107 public void testFilePropertyDisabled_False2() throws Exception { 108 runMyTest("testFilePropertyDisabled_False2", ""); 109 } 110 public void testFilePropertyOnblur() throws Exception { 111 runMyTest("testFilePropertyOnblur", ""); 112 } 113 114 public void testFilePropertyOnchange() throws Exception { 115 runMyTest("testFilePropertyOnchange", ""); 116 } 117 118 public void testFilePropertyOnclick() throws Exception { 119 runMyTest("testFilePropertyOnclick", ""); 120 } 121 122 public void testFilePropertyOndblclick() throws Exception { 123 runMyTest("testFilePropertyOndblclick", ""); 124 } 125 126 public void testFilePropertyOnfocus() throws Exception { 127 runMyTest("testFilePropertyOnfocus", ""); 128 } 129 130 public void testFilePropertyOnkeydown() throws Exception { 131 runMyTest("testFilePropertyOnkeydown", ""); 132 } 133 134 public void testFilePropertyOnkeypress() throws Exception { 135 runMyTest("testFilePropertyOnkeypress", ""); 136 } 137 138 public void testFilePropertyOnkeyup() throws Exception { 139 runMyTest("testFilePropertyOnkeyup", ""); 140 } 141 142 public void testFilePropertyOnmousedown() throws Exception { 143 runMyTest("testFilePropertyOnmousedown", ""); 144 } 145 146 public void testFilePropertyOnmousemove() throws Exception { 147 runMyTest("testFilePropertyOnmousemove", ""); 148 } 149 150 public void testFilePropertyOnmouseout() throws Exception { 151 runMyTest("testFilePropertyOnmouseout", ""); 152 } 153 154 public void testFilePropertyOnmouseover() throws Exception { 155 runMyTest("testFilePropertyOnmouseover", ""); 156 } 157 158 public void testFilePropertyOnmouseup() throws Exception { 159 runMyTest("testFilePropertyOnmouseup", ""); 160 } 161 162 } 163 | Popular Tags |