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 TestTextareaTag1 extends JspTestCase { 36 37 42 public TestTextareaTag1(String theName) { 43 super(theName); 44 } 45 46 51 public static void main(String [] theArgs) { 52 junit.awtui.TestRunner.main(new String [] {TestTextareaTag1.class.getName()}); 53 } 54 55 59 public static Test suite() { 60 return new TestSuite(TestTextareaTag1.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/TestTextareaTag1.jsp"); 69 } 70 71 74 public void testTextareaProperty() throws Exception { 75 runMyTest("testTextareaProperty", ""); 76 } 77 public void testTextareaPropertyAccesskey() throws Exception { 78 runMyTest("testTextareaPropertyAccesskey", ""); 79 } 80 public void testTextareaPropertyAlt() throws Exception { 81 runMyTest("testTextareaPropertyAlt", ""); 82 } 83 public void testTextareaPropertyAltKey1() throws Exception { 84 runMyTest("testTextareaPropertyAltKey1", ""); 85 } 86 public void testTextareaPropertyAltKey2() throws Exception { 87 runMyTest("testTextareaPropertyAltKey2", ""); 88 } 89 public void testTextareaPropertyAltKey3() throws Exception { 90 runMyTest("testTextareaPropertyAltKey3", ""); 91 } 92 public void testTextareaPropertyAltKey_fr1() throws Exception { 93 runMyTest("testTextareaPropertyAltKey1_fr", "fr"); 94 } 95 public void testTextareaPropertyAltKey_fr2() throws Exception { 96 runMyTest("testTextareaPropertyAltKey2_fr", "fr"); 97 } 98 public void testTextareaPropertyCols() throws Exception { 99 runMyTest("testTextareaPropertyCols", ""); 100 } 101 public void testTextareaPropertyDisabled() throws Exception { 102 runMyTest("testTextareaPropertyDisabled", ""); 103 } 104 public void testTextareaPropertyOnblur() throws Exception { 105 runMyTest("testTextareaPropertyOnblur", ""); 106 } 107 public void testTextareaPropertyOnchange() throws Exception { 108 runMyTest("testTextareaPropertyOnchange", ""); 109 } 110 public void testTextareaPropertyOnclick() throws Exception { 111 runMyTest("testTextareaPropertyOnclick", ""); 112 } 113 public void testTextareaPropertyOndblclick() throws Exception { 114 runMyTest("testTextareaPropertyOndblclick", ""); 115 } 116 public void testTextareaPropertyOnfocus() throws Exception { 117 runMyTest("testTextareaPropertyOnfocus", ""); 118 } 119 public void testTextareaPropertyOnkeydown() throws Exception { 120 runMyTest("testTextareaPropertyOnkeydown", ""); 121 } 122 public void testTextareaPropertyOnkeypress() throws Exception { 123 runMyTest("testTextareaPropertyOnkeypress", ""); 124 } 125 public void testTextareaPropertyOnkeyup() throws Exception { 126 runMyTest("testTextareaPropertyOnkeyup", ""); 127 } 128 public void testTextareaPropertyOnmousedown() throws Exception { 129 runMyTest("testTextareaPropertyOnmousedown", ""); 130 } 131 public void testTextareaPropertyOnmousemove() throws Exception { 132 runMyTest("testTextareaPropertyOnmousemove", ""); 133 } 134 public void testTextareaPropertyOnmouseout() throws Exception { 135 runMyTest("testTextareaPropertyOnmouseout", ""); 136 } 137 public void testTextareaPropertyOnmouseover() throws Exception { 138 runMyTest("testTextareaPropertyOnmouseover", ""); 139 } 140 public void testTextareaPropertyOnmouseup() throws Exception { 141 runMyTest("testTextareaPropertyOnmouseup", ""); 142 } 143 144 } 145 | Popular Tags |