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.

Ashley Frieze

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

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

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button