1 18 package org.apache.struts.taglib.html; 19 20 import java.util.Locale ; 21 22 import javax.servlet.jsp.PageContext ; 23 24 import junit.framework.Test; 25 import junit.framework.TestSuite; 26 27 import org.apache.cactus.JspTestCase; 28 import org.apache.struts.Globals; 29 import org.apache.struts.taglib.SimpleBeanForTesting; 30 31 36 public class TestImgTag8 extends JspTestCase { 37 38 43 public TestImgTag8(String theName) { 44 super(theName); 45 } 46 47 52 public static void main(String [] theArgs) { 53 junit.awtui.TestRunner.main(new String [] {TestImgTag8.class.getName()}); 54 } 55 56 60 public static Test suite() { 61 return new TestSuite(TestImgTag8.class); 63 } 64 65 private void runMyTest(String whichTest, String locale) throws Exception { 66 pageContext.setAttribute(Globals.LOCALE_KEY, new Locale (locale, locale), PageContext.SESSION_SCOPE); 67 pageContext.setAttribute(Constants.BEAN_KEY, new SimpleBeanForTesting("Test Value"), PageContext.REQUEST_SCOPE); 68 request.setAttribute("runTest", whichTest); 69 pageContext.forward("/test/org/apache/struts/taglib/html/TestImgTag8.jsp"); 70 } 71 72 75 76 78 public void testImgSrcKeyOnclick() throws Exception { 79 runMyTest("testImgSrcKeyOnclick", ""); 80 } 81 82 public void testImgSrcKeyOndblclick() throws Exception { 83 runMyTest("testImgSrcKeyOndblclick", ""); 84 } 85 86 public void testImgSrcKeyOnkeydown() throws Exception { 87 runMyTest("testImgSrcKeyOnkeydown", ""); 88 } 89 90 public void testImgSrcKeyOnkeypress() throws Exception { 91 runMyTest("testImgSrcKeyOnkeypress", ""); 92 } 93 94 public void testImgSrcKeyOnkeyup() throws Exception { 95 runMyTest("testImgSrcKeyOnkeyup", ""); 96 } 97 98 public void testImgSrcKeyOnmousedown() throws Exception { 99 runMyTest("testImgSrcKeyOnmousedown", ""); 100 } 101 102 public void testImgSrcKeyOnmousemove() throws Exception { 103 runMyTest("testImgSrcKeyOnmousemove", ""); 104 } 105 106 public void testImgSrcKeyOnmouseout() throws Exception { 107 runMyTest("testImgSrcKeyOnmouseout", ""); 108 } 109 110 public void testImgSrcKeyOnmouseover() throws Exception { 111 runMyTest("testImgSrcKeyOnmouseover", ""); 112 } 113 114 public void testImgSrcKeyOnmouseup() throws Exception { 115 runMyTest("testImgSrcKeyOnmouseup", ""); 116 } 117 118 public void testImgSrcKeyStyle() throws Exception { 119 runMyTest("testImgSrcKeyStyle", ""); 120 } 121 122 public void testImgSrcKeyStyleClass() throws Exception { 123 runMyTest("testImgSrcKeyStyleClass", ""); 124 } 125 126 public void testImgSrcKeyStyleId() throws Exception { 127 runMyTest("testImgSrcKeyStyleId", ""); 128 } 129 130 public void testImgSrcKeyTitle() throws Exception { 131 runMyTest("testImgSrcKeyTitle", ""); 132 } 133 134 public void testImgSrcKeyTitleKeyDefaultBundle() throws Exception { 135 runMyTest("testImgSrcKeyTitleKeyDefaultBundle", ""); 136 } 137 138 public void testImgSrcKeyTitleKeyAlternateBundle() throws Exception { 139 runMyTest("testImgSrcKeyTitleKeyAlternateBundle", ""); 140 } 141 142 public void testImgSrcKeyTitleKeyDefaultBundle_fr() throws Exception { 143 runMyTest("testImgSrcKeyTitleKeyDefaultBundle_fr", "fr"); 144 } 145 146 public void testImgSrcKeyTitleKeyAlternateBundle_fr() throws Exception { 147 runMyTest("testImgSrcKeyTitleKeyAlternateBundle_fr", "fr"); 148 } 149 150 public void testImgSrcKeyUsemap() throws Exception { 151 runMyTest("testImgSrcKeyUsemap", ""); 152 } 153 154 } 155 | Popular Tags |