stefanbirkner/system-rules — pull request #10 by BorisNaguet (2013-09-10 10:47:10+00:00)
Title: Use StandardOutputStreamLog and StandardErrorStreamLog and optionally keep logging to the console

Hello,
system-rules is a good way to check what is printed to the console, but it's a bit annoying to lose all the logs (especially when you write the assertions on these logs, need to count lines, write regexp, understand why it fails...).

So I thought it would be nice to have some way to get this log, and still see it in the Console, I juste used a TeeInputStream to write at the same time in the ByteArray and in the sysout.

I added some usage example, and parameterized the unit test to test all constructors.

Regards