use of org.neo4j.csv.reader.Configuration.COMMAS in project neo4j by neo4j.
the class ImportCommandTest method shouldCreateDebugLogInExpectedPlace.
@Test
void shouldCreateDebugLogInExpectedPlace() throws Exception {
// given
runImport("--nodes", nodeData(true, COMMAS, nodeIds(), TRUE).toAbsolutePath().toString());
// THEN go and read the debug.log where it's expected to be and see if there's an IMPORT DONE line in it
Path internalLogFile = Config.defaults(neo4j_home, testDirectory.homePath()).get(store_internal_log_path);
assertTrue(Files.exists(internalLogFile));
List<String> lines = Files.readAllLines(internalLogFile);
assertTrue(lines.stream().anyMatch(line -> line.contains("Import completed successfully")));
}
Aggregations