1 18 package org.apache.struts.taglib.html; 19 20 import junit.framework.Test; 21 import junit.framework.TestSuite; 22 23 import org.apache.struts.taglib.TaglibTestBase; 24 25 26 27 32 public class TestBaseTag extends TaglibTestBase { 33 34 39 public TestBaseTag(String theName) { 40 super(theName); 41 } 42 43 48 public static void main(String [] theArgs) { 49 junit.awtui.TestRunner.main(new String [] {TestBaseTag.class.getName()}); 50 } 51 52 56 public static Test suite() { 57 return new TestSuite(TestBaseTag.class); 59 } 60 61 private void runMyTest(String whichTest) throws Exception { 62 request.setAttribute("runTest", whichTest); 63 pageContext.forward("/test/org/apache/struts/taglib/html/TestBaseTag.jsp"); 64 } 65 66 69 public void testBase() throws Exception { 70 runMyTest("testBase"); 71 } 72 73 public void testBaseTarget() throws Exception { 74 runMyTest("testBaseTarget"); 75 } 76 77 public void testBaseServer() throws Exception { 78 runMyTest("testBaseServer"); 79 } 80 81 public void testBaseServerTarget() throws Exception { 82 runMyTest("testBaseServerTarget"); 83 } 84 85 } 86 | Popular Tags |