1 18 19 package org.apache.strutsel.taglib.utils; 20 21 import java.io.IOException ; 22 23 import org.apache.commons.logging.Log; 24 import org.apache.commons.logging.LogFactory; 25 26 27 public class TestHelper { 28 private static Log log = LogFactory.getLog(TestHelper.class); 29 30 public static void printResponse(com.meterware.httpunit.WebResponse testResponse) 31 throws IOException { 32 log.debug("response text[" + testResponse.getText() + "]"); 33 } 34 35 public static String getAttrErrMess(String tagName, 36 String attrName, 37 String requiredValue, 38 String actualValue) 39 { 40 return ("The <" + tagName + "> \"" + attrName + "\" attribute " + 41 "should have had value \"" + requiredValue + "\", but it " + 42 "instead had value \"" + actualValue + "\"."); 43 } 44 } 45 | Popular Tags |