testing a legacy cli app (coffee machine part 1)

Adding characterization tests to a legacy java code command line application. Running into the legacy code dilemma because of dependencies to the System global.

The code on my GitHub

I found the code thanks to Ted Young, check out his quality coding twitch stream.

Where the code originates from: stackexchange post

Recommended book: Working Effectively With Legacy Code

Recommended talk: Michael Feathers - the deep synergy between testability and good design.

The 3rd party lib i used for Characterization Testing: Seamer.

Post about Preparatory Refactoring.