Hi, how do you use the MockPageContext in a JUnit test of a custom tag.
I keep having errors, because the getOut method is not implemented in the mock.
I am using a simple Custom tag which extended TagSupport, and fill the html with a simple :
ThksCode:JspWriter out = pageContext.getOut(); StringBuffer sb = new StringBuffer(); sb.append("my html output"); out.print(sb); out.flush();


Reply With Quote