Added prompting interruption, add exception in parameterized commands
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
@@ -74,7 +74,7 @@ public class TestConsoleManager implements ConsoleManager, AutoCloseable {
|
||||
PipedOutputStream out = new PipedOutputStream(commandOutput);
|
||||
commandBuffOutput = new BufferedReader(
|
||||
new InputStreamReader(commandOutput, Charset.defaultCharset()));
|
||||
outPrint = new PrintStream(out);
|
||||
outPrint = new PrintStream(out, true, Charset.defaultCharset().name());
|
||||
innerManager = new SystemConsoleManager(outPrint, in,
|
||||
Charset.forName("UTF-8"));
|
||||
}
|
||||
@@ -141,4 +141,11 @@ public class TestConsoleManager implements ConsoleManager, AutoCloseable {
|
||||
public String readNextLine() throws IOException {
|
||||
return commandBuffOutput.readLine();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see fr.bigeon.gclc.manager.ConsoleManager#interruptPrompt() */
|
||||
@Override
|
||||
public void interruptPrompt() {
|
||||
innerManager.interruptPrompt();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user