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 TestSelectTag1 extends JspTestCase { 36 37 42 public TestSelectTag1(String theName) { 43 super(theName); 44 } 45 46 51 public static void main(String [] theArgs) { 52 junit.awtui.TestRunner.main(new String [] {TestSelectTag1.class.getName()}); 53 } 54 55 59 public static Test suite() { 60 return new TestSuite(TestSelectTag1.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/TestSelectTag1.jsp"); 69 } 70 71 74 public void testSelectPropertyAlt() throws Exception { 75 runMyTest("testSelectPropertyAlt", ""); 76 } 77 public void testSelectPropertyAltKey1() throws Exception { 78 runMyTest("testSelectPropertyAltKey1", ""); 79 } 80 public void testSelectPropertyAltKey2() throws Exception { 81 runMyTest("testSelectPropertyAltKey2", ""); 82 } 83 public void testSelectPropertyAltKey3() throws Exception { 84 runMyTest("testSelectPropertyAltKey3", ""); 85 } 86 public void testSelectPropertyAltKey_fr1() throws Exception { 87 runMyTest("testSelectPropertyAltKey1_fr", "fr"); 88 } 89 public void testSelectPropertyAltKey_fr2() throws Exception { 90 runMyTest("testSelectPropertyAltKey2_fr", "fr"); 91 } 92 public void testSelectPropertyDisabled() throws Exception { 93 runMyTest("testSelectPropertyDisabled", ""); 94 } 95 public void testSelectPropertyMultiple() throws Exception { 96 runMyTest("testSelectPropertyMultiple", ""); 97 } 98 public void testSelectPropertyOnblur() throws Exception { 99 runMyTest("testSelectPropertyOnblur", ""); 100 } 101 public void testSelectPropertyOnchange() throws Exception { 102 runMyTest("testSelectPropertyOnchange", ""); 103 } 104 public void testSelectPropertyOnclick() throws Exception { 105 runMyTest("testSelectPropertyOnclick", ""); 106 } 107 public void testSelectPropertyOndblclick() throws Exception { 108 runMyTest("testSelectPropertyOndblclick", ""); 109 } 110 public void testSelectPropertyOnfocus() throws Exception { 111 runMyTest("testSelectPropertyOnfocus", ""); 112 } 113 public void testSelectPropertyOnkeydown() throws Exception { 114 runMyTest("testSelectPropertyOnkeydown", ""); 115 } 116 public void testSelectPropertyOnkeypress() throws Exception { 117 runMyTest("testSelectPropertyOnkeypress", ""); 118 } 119 public void testSelectPropertyOnkeyup() throws Exception { 120 runMyTest("testSelectPropertyOnkeyup", ""); 121 } 122 public void testSelectPropertyOnmousedown() throws Exception { 123 runMyTest("testSelectPropertyOnmousedown", ""); 124 } 125 public void testSelectPropertyOnmousemove() throws Exception { 126 runMyTest("testSelectPropertyOnmousemove", ""); 127 } 128 public void testSelectPropertyOnmouseout() throws Exception { 129 runMyTest("testSelectPropertyOnmouseout", ""); 130 } 131 public void testSelectPropertyOnmouseover() throws Exception { 132 runMyTest("testSelectPropertyOnmouseover", ""); 133 } 134 public void testSelectPropertyOnmouseup() throws Exception { 135 runMyTest("testSelectPropertyOnmouseup", ""); 136 } 137 138 } 139 | Popular Tags |