1 18 package org.apache.struts.taglib.bean; 19 20 import junit.framework.Test; 21 import junit.framework.TestSuite; 22 import org.apache.struts.taglib.TaglibTestBase; 23 24 29 public class TestCookieTag extends TaglibTestBase { 30 31 protected final static String COOKIE_KEY = "COOKIE_KEY"; 32 protected final static String COOKIE_VAL = "COOKIE_VAL"; 33 34 39 public TestCookieTag(String theName) { 40 super(theName); 41 } 42 43 48 public static void main(String [] theArgs) { 49 junit.awtui.TestRunner.main(new String [] {TestCookieTag.class.getName()}); 50 } 51 52 56 public static Test suite() { 57 return new TestSuite(TestCookieTag.class); 59 } 60 61 62 63 private void runMyTest(String whichTest) throws Exception { 64 request.setAttribute("runTest", whichTest); 65 pageContext.forward("/test/org/apache/struts/taglib/bean/TestCookieTag.jsp"); 66 } 67 68 private void formatAndTest(String compare, String output) { 69 output = replace(output,"\r",""); 71 output = replace(output,"\n",""); 72 output = output.trim(); 73 assertEquals(compare, output); 75 } 76 77 78 81 93 94 95 98 116 117 120 131 132 133 public void testDummy() { 134 } 135 136 } 137 | Popular Tags |