BeamSqlLine { public static void main(String[] args) throws IOException { runSqlLine(args, null, System.out, System.err); }  static void main(String[] args);  }
@Test public void testSqlLine_emptyArgs() throws Exception { BeamSqlLine.main(new String[] {}); }
@Test public void testSqlLine_nullCommand() throws Exception { BeamSqlLine.main(new String[] {"-e", ""}); }
@Test public void testSqlLine_simple() throws Exception { BeamSqlLine.main(new String[] {"-e", "SELECT 1;"}); }
@Test public void testSqlLine_parse() throws Exception { BeamSqlLine.main(new String[] {"-e", "SELECT 'beam';"}); }
@Test public void testSqlLine_ddl() throws Exception { BeamSqlLine.main( new String[] { "-e", "CREATE EXTERNAL TABLE test (id INTEGER) TYPE 'text';", "-e", "DROP TABLE test;" }); }
@Test public void classLoader_readFile() throws Exception { File simpleTable = folder.newFile(); BeamSqlLine.main( new String[] { "-e", "CREATE EXTERNAL TABLE test (id INTEGER) TYPE 'text' LOCATION '" + simpleTable.getAbsolutePath() + "';", "-e", "SELECT * FROM test;", "-e", "DROP TABLE test;" }); }