DdlParsers { public List<ParsingResult> parseUsingAll( final String ddl ) throws ParsingException { return parseUsing(ddl, this.parsers); } DdlParsers();  DdlParsers( List<DdlParser> parsers ); DdlParser getParser( final String id ); Set<DdlParser> getParsers(); AstNode parseUsing( final String ddl,
                               final String parserId ); List<ParsingResult> parseUsing( final String ddl,
                                           final String firstParserId,
                                           final String secondParserId,
                                           final String... additionalParserIds ); List<ParsingResult> parseUsingAll( final String ddl ); AstNode parse( final String ddl,
                          final String fileName ); static final List<DdlParser> BUILTIN_PARSERS; }
@Test public void shouldReturnResultsInOrder() { printTest("shouldReturnResultsInOrder()"); { final String ddl = getFileContent(DDL_TEST_FILE_PATH + "dialect/oracle/oracle_test_statements_3.ddl"); final List<ParsingResult> results = this.parsers.parseUsingAll(ddl); assertThat(results.size(), is(DdlParsers.BUILTIN_PARSERS.size())); assertThat(results.get(0).getParserId(), is(OracleDdlParser.ID)); } { final String ddl = getFileContent(DDL_TEST_FILE_PATH + "dialect/derby/derby_test_statements.ddl"); final List<ParsingResult> results = this.parsers.parseUsingAll(ddl); assertThat(results.size(), is(DdlParsers.BUILTIN_PARSERS.size())); assertThat(results.get(0).getParserId(), is(DerbyDdlParser.ID)); } }