1 18 19 package org.apache.strutsel.taglib.utils; 20 21 import java.util.HashMap ; 22 import org.apache.cactus.JspTestCase; 23 24 public class JspTagTestCase extends JspTestCase 25 { 26 public JspTagTestCase(String theName) { 27 super(theName); 28 } 29 30 protected void 31 checkAttrValue(HashMap attrMap, 32 com.meterware.httpunit.WebResponse testResponse, 33 String headerKey, 34 String tagName, 35 String attrName) 36 { 37 String attrValue = (String )attrMap.get(attrName); 38 String requiredAttrValue = 39 (String )testResponse.getHeaderField(headerKey); 40 41 if (!attrValue.equals(requiredAttrValue)) { 42 fail(TestHelper.getAttrErrMess(tagName, attrName, 43 requiredAttrValue, attrValue)); 44 } 45 } 46 } 47 | Popular Tags |