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 30 35 public class TestMessagesTag3 extends JspTestCase { 36 37 42 public TestMessagesTag3(String theName) { 43 super(theName); 44 } 45 46 51 public static void main(String [] theArgs) { 52 junit.awtui.TestRunner.main(new String [] {TestMessagesTag3.class.getName()}); 53 } 54 55 59 public static Test suite() { 60 return new TestSuite(TestMessagesTag3.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 request.setAttribute("runTest", whichTest); 67 pageContext.forward("/test/org/apache/struts/taglib/html/TestMessagesTag3.jsp"); } 68 69 72 73 public void testMessages() throws Exception { 74 runMyTest("testMessages", ""); 75 } 76 77 public void testMessagesDefaultBundleEmpty() throws Exception { 78 runMyTest("testMessagesDefaultBundleEmpty", ""); 79 } 80 81 public void testMessagesActionMessageDefaultBundle() throws Exception { 82 runMyTest("testMessagesActionMessageDefaultBundle", ""); 83 } 84 85 public void testMessagesActionMessageDefaultBundleHeader() throws Exception { 86 runMyTest("testMessagesActionMessageDefaultBundleHeader", ""); 87 } 88 89 90 public void testMessagesActionMessageDefaultBundleHeaderFooter() throws Exception { 91 runMyTest("testMessagesActionMessageDefaultBundleHeaderFooter", ""); 92 } 93 94 95 public void testMessagesNameDefaultBundleEmpty() throws Exception { 96 runMyTest("testMessagesNameDefaultBundleEmpty", ""); 97 } 98 99 public void testMessagesNamePropertyDefaultBundleEmpty() throws Exception { 100 runMyTest("testMessagesNamePropertyDefaultBundleEmpty", ""); 101 } 102 103 public void testMessagesNameActionMessageDefaultBundle() throws Exception { 104 runMyTest("testMessagesNameActionMessageDefaultBundle", ""); 105 } 106 107 public void testMessagesNamePropertyActionMessageDefaultBundle() throws Exception { 108 runMyTest("testMessagesNamePropertyActionMessageDefaultBundle", ""); 109 } 110 111 public void testMessagesNameActionMessageDefaultBundleHeader() throws Exception { 112 runMyTest("testMessagesNameActionMessageDefaultBundleHeader", ""); 113 } 114 115 public void testMessagesNamePropertyActionMessageDefaultBundleHeader() throws Exception { 116 runMyTest("testMessagesNamePropertyActionMessageDefaultBundleHeader", ""); 117 } 118 119 public void testMessagesNameActionMessageDefaultBundleHeaderFooter() throws Exception { 120 runMyTest("testMessagesNameActionMessageDefaultBundleHeaderFooter", ""); 121 } 122 123 public void testMessagesNamePropertyActionMessageDefaultBundleHeaderFooter() throws Exception { 124 runMyTest("testMessagesNamePropertyActionMessageDefaultBundleHeaderFooter", ""); 125 } 126 127 128 public void testMessagesAlternateBundleEmpty() throws Exception { 129 runMyTest("testMessagesAlternateBundleEmpty", ""); 130 } 131 132 public void testMessagesActionMessageAlternateBundle() throws Exception { 133 runMyTest("testMessagesActionMessageAlternateBundle", ""); 134 } 135 136 public void testMessagesActionMessageAlternateBundleHeader() throws Exception { 137 runMyTest("testMessagesActionMessageAlternateBundleHeader", ""); 138 } 139 140 141 public void testMessagesActionMessageAlternateBundleHeaderFooter() throws Exception { 142 runMyTest("testMessagesActionMessageAlternateBundleHeaderFooter", ""); 143 } 144 145 public void testMessagesNameAlternateBundleEmpty() throws Exception { 146 runMyTest("testMessagesNameAlternateBundleEmpty", ""); 147 } 148 149 public void testMessagesNamePropertyAlternateBundleEmpty() throws Exception { 150 runMyTest("testMessagesNamePropertyAlternateBundleEmpty", ""); 151 } 152 153 public void testMessagesNameActionMessageAlternateBundle() throws Exception { 154 runMyTest("testMessagesNameActionMessageAlternateBundle", ""); 155 } 156 157 public void testMessagesNamePropertyActionMessageAlternateBundle() throws Exception { 158 runMyTest("testMessagesNamePropertyActionMessageAlternateBundle", ""); 159 } 160 161 public void testMessagesNameActionMessageAlternateBundleHeader() throws Exception { 162 runMyTest("testMessagesNameActionMessageAlternateBundleHeader", ""); 163 } 164 165 public void testMessagesNamePropertyActionMessageAlternateBundleHeader() throws Exception { 166 runMyTest("testMessagesNamePropertyActionMessageAlternateBundleHeader", ""); 167 } 168 169 public void testMessagesNameActionMessageAlternateBundleHeaderFooter() throws Exception { 170 runMyTest("testMessagesNameActionMessageAlternateBundleHeaderFooter", ""); 171 } 172 173 public void testMessagesNamePropertyActionMessageAlternateBundleHeaderFooter() throws Exception { 174 runMyTest("testMessagesNamePropertyActionMessageAlternateBundleHeaderFooter", ""); 175 } 176 177 178 } 179 | Popular Tags |