mercredi 25 mars 2015

Testing a method that reads from standard input and outputs to standard output

I have a method which reads lines from standard input and outputs them to standard output. In a JUnit test, how can I have it send standard input to the method and how can it make assertions about the output?


Aucun commentaire:

Enregistrer un commentaire