Insert extends QueryBuilder { Insert(QueryBuilderOptions options) { super(options, Arrays.asList( new StringBlock(options, "INSERT"), new IntoTableBlock(options), new InsertFieldValueBlock(options), new InsertFieldsFromQueryBlock(options) )); } Insert(QueryBuilderOptions options); @Override QueryBuilder into(String table); @Override QueryBuilder set(String field, T value); @Override QueryBuilder fromQuery(Iterable<String> fields, QueryBuilder query);  }
@Test(expected=UnsupportedOperationException.class) public void whereShouldThrow() { Squel.insert() .where("TABLE"); }
@Test(expected=UnsupportedOperationException.class) public void whereExpressionShouldThrow() { Squel.insert() .where(Squel.expr()); }
@Test(expected=UnsupportedOperationException.class) public void limitShouldThrow() { Squel.insert() .limit(10); }
@Test(expected=UnsupportedOperationException.class) public void offsetShouldThrow() { Squel.insert() .offset(10); }
@Test(expected=UnsupportedOperationException.class) public void ofderShouldThrow() { Squel.insert() .order("A"); }
@Test(expected=UnsupportedOperationException.class) public void unionShouldThrow() { Squel.insert() .union("A"); }
@Test(expected=UnsupportedOperationException.class) public void unionQueryBuilderShouldThrow() { Squel.insert() .union(Squel.select()); }
@Test(expected=UnsupportedOperationException.class) public void tableShouldThrow() { Squel.insert() .table("TABLE"); }