Hi,
I am a Vert.x committer and maintainer of the Vert.x Maven Plugin.
We use jline for interactions with users creating a new project (asking questions about the desired version, artifact id, ... etc).
In the test suite, we create a test line reader like this:
Terminal terminal = TerminalBuilder.builder()
.system(false)
.jni(false)
.streams(in, out)
.build();
console = LineReaderBuilder.builder()
.terminal(terminal)
.build();
"in" is a PipedInputStream and "out" a ByteArrayOutputStream.
It worked well on both Linux and Windows until recently, with no changes on our side.
The problem is that, now, on Windows, the surefire plugin prints this:
Error: [SUREFIRE] std/in stream corrupted
And then the build fails even if all tests passed.
Does that ring a bell to anyone?
Can you see anything wrong in the way the test Terminal and LineReader are created?
Thank you,
Thomas