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 TestImageTag1 extends JspTestCase { 37 38 43 public TestImageTag1(String theName) { 44 super(theName); 45 } 46 47 52 public static void main(String [] theArgs) { 53 junit.awtui.TestRunner.main(new String [] {TestImageTag1.class.getName()}); 54 } 55 56 60 public static Test suite() { 61 return new TestSuite(TestImageTag1.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/TestImageTag1.jsp"); 70 } 71 72 75 76 78 public void testImagePageAccesskey() throws Exception { 79 runMyTest("testImagePageAccesskey", ""); 80 } 81 82 public void testImagePageAlign() throws Exception { 83 runMyTest("testImagePageAlign", ""); 84 } 85 86 public void testImagePageAlt() throws Exception { 87 runMyTest("testImagePageAlt", ""); 88 } 89 90 public void testImagePageAltKeyDefaultBundle() throws Exception { 91 runMyTest("testImagePageAltKeyDefaultBundle", ""); 92 } 93 94 public void testImagePageAltKeyAlternateBundle() throws Exception { 95 runMyTest("testImagePageAltKeyAlternateBundle", ""); 96 } 97 98 public void testImagePageAltKeyDefaultBundle_fr() throws Exception { 99 runMyTest("testImagePageAltKeyDefaultBundle_fr", "fr"); 100 } 101 102 public void testImagePageAltKeyAlternateBundle_fr() throws Exception { 103 runMyTest("testImagePageAltKeyAlternateBundle_fr", "fr"); 104 } 105 106 public void testImagePageBorder() throws Exception { 107 runMyTest("testImagePageBorder", ""); 108 } 109 110 public void testImagePageDisabled1() throws Exception { 111 runMyTest("testImagePageDisabled1", ""); 112 } 113 114 public void testImagePageDisabled2() throws Exception { 115 runMyTest("testImagePageDisabled2", ""); 116 } 117 118 public void testImagePageDisabled3() throws Exception { 119 runMyTest("testImagePageDisabled3", ""); 120 } 121 122 public void testImagePageDisabled4() throws Exception { 123 runMyTest("testImagePageDisabled4", ""); 124 } 125 126 public void testImagePageDisabled5() throws Exception { 127 runMyTest("testImagePageDisabled5", ""); 128 } 129 130 public void testImagePageDisabled6() throws Exception { 131 runMyTest("testImagePageDisabled6", ""); 132 } 133 134 public void testImagePageLocale() throws Exception { 135 pageContext.setAttribute("secret locale", new Locale ("fr", "fr"), PageContext.SESSION_SCOPE); 136 runMyTest("testImagePageLocale", ""); 137 } 138 139 public void testImagePageOnblur() throws Exception { 140 runMyTest("testImagePageOnblur", ""); 141 } 142 143 public void testImagePageOnchange() throws Exception { 144 runMyTest("testImagePageOnchange", ""); 145 } 146 147 public void testImagePageOnclick() throws Exception { 148 runMyTest("testImagePageOnclick", ""); 149 } 150 151 public void testImagePageOndblclick() throws Exception { 152 runMyTest("testImagePageOndblclick", ""); 153 } 154 155 public void testImagePageOnfocus() throws Exception { 156 runMyTest("testImagePageOnfocus", ""); 157 } 158 159 public void testImagePageOnkeydown() throws Exception { 160 runMyTest("testImagePageOnkeydown", ""); 161 } 162 163 public void testImagePageOnkeypress() throws Exception { 164 runMyTest("testImagePageOnkeypress", ""); 165 } 166 167 public void testImagePageOnkeyup() throws Exception { 168 runMyTest("testImagePageOnkeyup", ""); 169 } 170 171 } 172 | Popular Tags |