Search in sources :

Example 1 with NonInteractiveShellRunner

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);
}
Also used : Logger(org.neo4j.shell.log.Logger) ShellRunner.getShellRunner(org.neo4j.shell.ShellRunner.getShellRunner) NonInteractiveShellRunner(org.neo4j.shell.cli.NonInteractiveShellRunner) NonInteractiveShellRunner(org.neo4j.shell.cli.NonInteractiveShellRunner) CliArgs(org.neo4j.shell.cli.CliArgs) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ShellRunner.getShellRunner (org.neo4j.shell.ShellRunner.getShellRunner)1 CliArgs (org.neo4j.shell.cli.CliArgs)1 NonInteractiveShellRunner (org.neo4j.shell.cli.NonInteractiveShellRunner)1 Logger (org.neo4j.shell.log.Logger)1