SELECT extends SqlRootNode { @Override public String getSql() { return sql; } SELECT(@NonNull String... columns); @Override String getSql(); FROM FROM(@NonNull String tableName); FROM FROM(@NonNull String... tableNames);  }
@Test public void testSingleColumn() { int tests = 10; for (int i = 0; i < tests; i++) { String colName = "col" + i; assertEquals("SELECT " + colName, new SELECT(colName).getSql()); } }
@Test public void testColumns() { Columns col = new Columns(20); String selectSql = new SELECT(col.columns).getSql(); assertEquals(col.sql, selectSql); }