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 TestImageTag5 extends JspTestCase { 37 38 43 public TestImageTag5(String theName) { 44 super(theName); 45 } 46 47 52 public static void main(String [] theArgs) { 53 junit.awtui.TestRunner.main(new String [] {TestImageTag5.class.getName()}); 54 } 55 56 60 public static Test suite() { 61 return new TestSuite(TestImageTag5.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/TestImageTag5.jsp"); 70 } 71 72 75 76 78 public void testImageSrcAccesskey() throws Exception { 79 runMyTest("testImageSrcAccesskey", ""); 80 } 81 82 public void testImageSrcAlign() throws Exception { 83 runMyTest("testImageSrcAlign", ""); 84 } 85 86 public void testImageSrcAlt() throws Exception { 87 runMyTest("testImageSrcAlt", ""); 88 } 89 90 public void testImageSrcAltKeyDefaultBundle() throws Exception { 91 runMyTest("testImageSrcAltKeyDefaultBundle", ""); 92 } 93 94 public void testImageSrcAltKeyAlternateBundle() throws Exception { 95 runMyTest("testImageSrcAltKeyAlternateBundle", ""); 96 } 97 98 public void testImageSrcAltKeyDefaultBundle_fr() throws Exception { 99 runMyTest("testImageSrcAltKeyDefaultBundle_fr", "fr"); 100 } 101 102 public void testImageSrcAltKeyAlternateBundle_fr() throws Exception { 103 runMyTest("testImageSrcAltKeyAlternateBundle_fr", "fr"); 104 } 105 106 public void testImageSrcBorder() throws Exception { 107 runMyTest("testImageSrcBorder", ""); 108 } 109 110 public void testImageSrcDisabled1() throws Exception { 111 runMyTest("testImageSrcDisabled1", ""); 112 } 113 114 public void testImageSrcDisabled2() throws Exception { 115 runMyTest("testImageSrcDisabled2", ""); 116 } 117 118 public void testImageSrcDisabled3() throws Exception { 119 runMyTest("testImageSrcDisabled3", ""); 120 } 121 122 public void testImageSrcDisabled4() throws Exception { 123 runMyTest("testImageSrcDisabled4", ""); 124 } 125 126 public void testImageSrcDisabled5() throws Exception { 127 runMyTest("testImageSrcDisabled5", ""); 128 } 129 130 public void testImageSrcDisabled6() throws Exception { 131 runMyTest("testImageSrcDisabled6", ""); 132 } 133 134 public void testImageSrcLocale() throws Exception { 135 pageContext.setAttribute("secret locale", new Locale ("fr", "fr"), PageContext.SESSION_SCOPE); 136 runMyTest("testImageSrcLocale", ""); 137 } 138 139 public void testImageSrcOnblur() throws Exception { 140 runMyTest("testImageSrcOnblur", ""); 141 } 142 143 public void testImageSrcOnchange() throws Exception { 144 runMyTest("testImageSrcOnchange", ""); 145 } 146 147 public void testImageSrcOnclick() throws Exception { 148 runMyTest("testImageSrcOnclick", ""); 149 } 150 151 public void testImageSrcOndblclick() throws Exception { 152 runMyTest("testImageSrcOndblclick", ""); 153 } 154 155 public void testImageSrcOnfocus() throws Exception { 156 runMyTest("testImageSrcOnfocus", ""); 157 } 158 159 public void testImageSrcOnkeydown() throws Exception { 160 runMyTest("testImageSrcOnkeydown", ""); 161 } 162 163 public void testImageSrcOnkeypress() throws Exception { 164 runMyTest("testImageSrcOnkeypress", ""); 165 } 166 167 public void testImageSrcOnkeyup() throws Exception { 168 runMyTest("testImageSrcOnkeyup", ""); 169 } 170 171 } 172 | Popular Tags |