use of org.neo4j.shell.cli.NonInteractiveShellRunner in project neo4j by neo4j.
the class ShellRunnerTest method inputIsNonInteractiveIfForced.
@Test
public void inputIsNonInteractiveIfForced() throws Exception {
CliArgs args = new CliArgs();
args.setNonInteractive(true);
ShellRunner runner = getShellRunner(args, mock(CypherShell.class), mock(Logger.class), connectionConfig);
assertTrue("Should be non-interactive shell runner when forced", runner instanceof NonInteractiveShellRunner);
}
Aggregations