Delete extends QueryBuilder { @Override public QueryBuilder from(String table, String alias) { FromTableBlock block = (FromTableBlock) mBlocks.get(1); block.setFrom(table, alias); return this; } Delete(QueryBuilderOptions options); @Override QueryBuilder from(String table, String alias); @Override QueryBuilder where(String condition, P param); @Override QueryBuilder where(Expression condition, P param); @Override QueryBuilder join(String table, String alias, String condition, JoinType type); @Override QueryBuilder join(QueryBuilder table, String alias, String condition, JoinType type); @Override QueryBuilder join(String table, String alias, Expression condition, JoinType type); @Override QueryBuilder join(QueryBuilder table, String alias, Expression condition, JoinType type); @Override QueryBuilder order(String field, SortOrder dir); @Override QueryBuilder limit(int value);  }
@Test public void from() { QueryBuilder sql = Squel.delete() .from("table"); String actual = sql.toString(); String expected = "DELETE FROM table"; assertEquals(expected, actual); }