Core Java

System Stubs: Another Minor Release

In today’s new release of System Stubs there’s increased documentation for testing logging output, as well as a new class – MultiplexOutput which allows the tapped output stream – System.err or System.out to be directed to more than one place. This means that OutputFactories.tapAndOutput() can be used, in conjunction with the SystemOut class to direct the output both to a TapStream and ALSO the console.

In other words, you can capture the logs AND still have them appear.

It all sounds small, but these small improvements are intended to make the library more useful. Feedback via GitHub issues, please.

Published on Java Code Geeks with permission by Ashley Frieze, partner at our JCG program. See the original article here: System Stubs: Another Minor Release

Opinions expressed by Java Code Geeks contributors are their own.

Want to know how to develop your skillset to become a Java Rockstar?

Join our newsletter to start rocking!

To get you started we give you our best selling eBooks for FREE!


1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

6. Spring Interview Questions

7. Android UI Design


and many more ....


Receive Java & Developer job alerts in your Area

I have read and agree to the terms & conditions


Ashley Frieze

Software developer, stand-up comedian, musician, writer, jolly big cheer-monkey, skeptical thinker, Doctor Who fan, lover of fine sounds
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
Back to top button