@@ -318,26 +318,26 @@ public void supportBatchInsert(){
318
318
}
319
319
320
320
@ Test
321
- public void singleInsert (){
322
- final SQL sql = new SQL (){{
321
+ public void singleInsert () {
322
+ final SQL sql = new SQL () {{
323
323
INSERT_INTO ("table1 a" );
324
324
INTO_COLUMNS ("col1,col2" );
325
- INTO_VALUES ("val1" ,"val2" );
325
+ INTO_VALUES ("val1" , "val2" );
326
326
}};
327
327
assertThat (sql .toString ()).isEqualToIgnoringWhitespace ("INSERT INTO table1 a (col1,col2) VALUES (val1,val2)" );
328
328
}
329
329
330
330
@ Test
331
- public void singleInsertWithMultipleInsertValues (){
332
- final String sql = new SQL () {{
333
- INSERT_INTO ("TABLE_A" ).INTO_COLUMNS ("a" , "b" ).INTO_VALUES ("#{a}" ).INTO_VALUES ("#{b}" );
334
- }}.toString ();
335
- System .out .println (sql );
336
- assertEquals ( "INSERT INTO TABLE_A\n (a, b)\n VALUES (#{a}, #{b})" , sql );
331
+ public void singleInsertWithMultipleInsertValues () {
332
+ final String sql = new SQL () {{
333
+ INSERT_INTO ("TABLE_A" ).INTO_COLUMNS ("a" , "b" ).INTO_VALUES ("#{a}" ).INTO_VALUES ("#{b}" );
334
+ }}.toString ();
335
+ System .out .println (sql );
336
+ assertThat ( sql ). isEqualToIgnoringWhitespace ( "INSERT INTO TABLE_A (a, b) VALUES (#{a}, #{b})" );
337
337
}
338
338
339
339
@ Test
340
- public void batchInsertWithMultipleInsertValues (){
340
+ public void batchInsertWithMultipleInsertValues () {
341
341
final String sql = new SQL () {{
342
342
INSERT_INTO ("TABLE_A" );
343
343
INTO_COLUMNS ("a" , "b" );
@@ -348,6 +348,6 @@ public void batchInsertWithMultipleInsertValues(){
348
348
INTO_VALUES ("#{b2}" );
349
349
}}.toString ();
350
350
System .out .println (sql );
351
- assertEquals ( "INSERT INTO TABLE_A\n (a, b)\n VALUES \n (#{a1}, #{b1}),\n (#{a2}, #{b2})" , sql );
351
+ assertThat ( sql ). isEqualToIgnoringWhitespace ( "INSERT INTO TABLE_A (a, b) VALUES (#{a1}, #{b1}), (#{a2}, #{b2})" );
352
352
}
353
353
}
0 commit comments