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 TestImageTag7 extends JspTestCase { 37 38 43 public TestImageTag7(String theName) { 44 super(theName); 45 } 46 47 52 public static void main(String [] theArgs) { 53 junit.awtui.TestRunner.main(new String [] {TestImageTag7.class.getName()}); 54 } 55 56 60 public static Test suite() { 61 return new TestSuite(TestImageTag7.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/TestImageTag7.jsp"); 70 } 71 72 75 76 78 public void testImageSrcKeyAccesskey() throws Exception { 79 runMyTest("testImageSrcKeyAccesskey", ""); 80 } 81 82 public void testImageSrcKeyAlign() throws Exception { 83 runMyTest("testImageSrcKeyAlign", ""); 84 } 85 86 public void testImageSrcKeyAlt() throws Exception { 87 runMyTest("testImageSrcKeyAlt", ""); 88 } 89 90 public void testImageSrcKeyAltKeyDefaultBundle() throws Exception { 91 runMyTest("testImageSrcKeyAltKeyDefaultBundle", ""); 92 } 93 94 public void testImageSrcKeyAltKeyAlternateBundle() throws Exception { 95 runMyTest("testImageSrcKeyAltKeyAlternateBundle", ""); 96 } 97 98 public void testImageSrcKeyAltKeyDefaultBundle_fr() throws Exception { 99 runMyTest("testImageSrcKeyAltKeyDefaultBundle_fr", "fr"); 100 } 101 102 public void testImageSrcKeyAltKeyAlternateBundle_fr() throws Exception { 103 runMyTest("testImageSrcKeyAltKeyAlternateBundle_fr", "fr"); 104 } 105 106 public void testImageSrcKeyBorder() throws Exception { 107 runMyTest("testImageSrcKeyBorder", ""); 108 } 109 110 public void testImageSrcKeyDisabled1() throws Exception { 111 runMyTest("testImageSrcKeyDisabled1", ""); 112 } 113 114 public void testImageSrcKeyDisabled2() throws Exception { 115 runMyTest("testImageSrcKeyDisabled2", ""); 116 } 117 118 public void testImageSrcKeyDisabled3() throws Exception { 119 runMyTest("testImageSrcKeyDisabled3", ""); 120 } 121 122 public void testImageSrcKeyDisabled4() throws Exception { 123 runMyTest("testImageSrcKeyDisabled4", ""); 124 } 125 126 public void testImageSrcKeyDisabled5() throws Exception { 127 runMyTest("testImageSrcKeyDisabled5", ""); 128 } 129 130 public void testImageSrcKeyDisabled6() throws Exception { 131 runMyTest("testImageSrcKeyDisabled6", ""); 132 } 133 134 public void testImageSrcKeyLocaleDefaultBundle() throws Exception { 135 runMyTest("testImageSrcKeyLocaleDefaultBundle", ""); 136 } 137 138 public void testImageSrcKeyLocaleAlternateBundle() throws Exception { 139 runMyTest("testImageSrcKeyLocaleAlternateBundle", ""); 140 } 141 142 public void testImageSrcKeyLocaleDefaultBundle_fr() throws Exception { 143 pageContext.setAttribute("secret locale", new Locale ("fr", "fr"), PageContext.SESSION_SCOPE); 144 runMyTest("testImageSrcKeyLocaleDefaultBundle_fr", ""); 145 } 146 147 public void testImageSrcKeyLocaleAlternateBundle_fr() throws Exception { 148 pageContext.setAttribute("secret locale", new Locale ("fr", "fr"), PageContext.SESSION_SCOPE); 149 runMyTest("testImageSrcKeyLocaleAlternateBundle_fr", ""); 150 } 151 152 public void testImageSrcKeyOnblur() throws Exception { 153 runMyTest("testImageSrcKeyOnblur", ""); 154 } 155 156 public void testImageSrcKeyOnchange() throws Exception { 157 runMyTest("testImageSrcKeyOnchange", ""); 158 } 159 160 public void testImageSrcKeyOnclick() throws Exception { 161 runMyTest("testImageSrcKeyOnclick", ""); 162 } 163 164 public void testImageSrcKeyOndblclick() throws Exception { 165 runMyTest("testImageSrcKeyOndblclick", ""); 166 } 167 168 public void testImageSrcKeyOnfocus() throws Exception { 169 runMyTest("testImageSrcKeyOnfocus", ""); 170 } 171 172 public void testImageSrcKeyOnkeydown() throws Exception { 173 runMyTest("testImageSrcKeyOnkeydown", ""); 174 } 175 176 public void testImageSrcKeyOnkeypress() throws Exception { 177 runMyTest("testImageSrcKeyOnkeypress", ""); 178 } 179 180 public void testImageSrcKeyOnkeyup() throws Exception { 181 runMyTest("testImageSrcKeyOnkeyup", ""); 182 } 183 184 } 185 | Popular Tags |