You could redirect stdout to a file of your choosing and test against that.

Although ideally you would instead take as an argument to print some sort of output range or Appender. Then you could test against that instead.

Reply via email to