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