Currently action output is written to stdout. It's handy for those of us with actions that don't use forwards (most do but some serve real data) if we can capture that data for testing. In my test cases I override actionPerform like this:
private ByteArrayOutputStream outStream;
public void actionPerform()
outStream = new ByteArrayOutputStream();
protected ByteArrayOutputStream getOutputStream()
It would be great if this were the default behavior.
Log in to post a comment.