@Test public void testCompleteQuery() { SqlBuilder sqlBuilder = new SqlBuilder(buildEntity()); String sql = sqlBuilder.build(); String expectedSql = "LOAD DATA LOCAL INFILE '' INTO TABLE simple_table " + "CHARACTER SET UTF8 FIELDS TERMINATED BY '\t' ENCLOSED BY '' " + "ESCAPED BY '\\\\' LINES TERMINATED BY '\n' STARTING BY '' " + "(column1, column2)"; assertEquals(expectedSql, sql); }
public String build() { addLoadDataIntoTable(); addFileConfig(); addColumnNames(); return getSql(); }
SqlBuilder { public String build() { addLoadDataIntoTable(); addFileConfig(); addColumnNames(); return getSql(); } }
SqlBuilder { public String build() { addLoadDataIntoTable(); addFileConfig(); addColumnNames(); return getSql(); } SqlBuilder(EntityInfo entityInfo); }
SqlBuilder { public String build() { addLoadDataIntoTable(); addFileConfig(); addColumnNames(); return getSql(); } SqlBuilder(EntityInfo entityInfo); String build(); void addLoadDataIntoTable(); void addFileConfig(); void addColumnNames(); String getSql(); }
SqlBuilder { public String build() { addLoadDataIntoTable(); addFileConfig(); addColumnNames(); return getSql(); } SqlBuilder(EntityInfo entityInfo); String build(); void addLoadDataIntoTable(); void addFileConfig(); void addColumnNames(); String getSql();  }