Answer the question
In order to leave comments, you need to log in
Emulating multiple value input from Junit (Java) console?
Hello. It is necessary to emulate input from the console, but not one value, but several. For one value, the following practice was applied:
System.setIn(new ByteArrayInputStream("...".getBytes()));
System.setIn(System.in);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question