V
V
Vladislav Kolotsei2016-01-12 22:25:08
Java
Vladislav Kolotsei, 2016-01-12 22:25:08

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);

How to do for multiple values? And is it possible?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question