Yup that was it thanks. I opened up an issue on the Jline3 github issues. Ok next problem... I am hoping its another easy fix because it has me stumped. Replacing the use of old constructor for ConsoleReader:
new ConsoleReader(new ByteArrayInputStream(input.getBytes()), baos);
With the following:
Terminal terminal = TerminalBuilder.builder()
.system(false)
.streams(new ByteArrayInputStream(input.getBytes()), baos)
.build();
...
reader = LineReaderBuilder.builder()
.terminal(terminal)
.history(history)
.build();
But nothing gets written to the outputstream in the test. File I am testing is here:
https://github.com/milleruntime/accumulo/blob/ACCUMULO-4703/shell/src/test/java/org/apache/accumulo/shell/commands/HistoryCommandTest.java
On Monday, October 2, 2017 at 5:43:15 PM UTC-4, Mike Miller wrote: