fw.append( "\nResulting in:\n\n" ); fw.append( AsciiDocGenerator.dumpToSeparateFileWithType( new File( DOCS_TARGET ), "intro.result", createQueryResultSnippet( engine.execute( query ).dumpToString() ) ) ); fw.append( "\nResulting in:\n\n" ); fw.append( AsciiDocGenerator.dumpToSeparateFileWithType( new File( DOCS_TARGET ), "intro.result", createQueryResultSnippet( engine.execute( query ).dumpToString() ) ) ); fw.close();
@Test public void testColumnAreInTheRightOrder() throws Exception { createTenNodes(); String q = "start one=node(1), two=node(2), three=node(3), four=node(4), five=node(5), six=node(6), " + "seven=node(7), eight=node(8), nine=node(9), ten=node(10) " + "return one, two, three, four, five, six, seven, eight, nine, ten"; ExecutionResult result = engine.execute( q ); assertThat( result.dumpToString(), matchesPattern( "one.*two.*three.*four.*five.*six.*seven.*eight.*nine.*ten" ) ); }
resultString = engine.execute( "match (n {name: 'my node'}) return n, n.name" ).dumpToString(); columnsString = columns.toString(); db.shutdown();