use of org.neo4j.shell.log.Logger in project neo4j by neo4j.
the class MainIntegrationTest method shouldFailIfInputFileDoesntExist.
@Test
public void shouldFailIfInputFileDoesntExist() {
// given
ByteArrayOutputStream out = new ByteArrayOutputStream();
Logger logger = new AnsiLogger(false, Format.VERBOSE, new PrintStream(out), new PrintStream(out));
// when
executeFileNonInteractively("what.cypher", logger);
// then
assertThat(out.toString(), containsString(format("what.cypher (No such file or directory)%n")));
}
Aggregations