@@ -34,7 +34,7 @@ import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder
34
34
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType
35
35
import java.util.*
36
36
37
- @Suppress(" LargeClass" , " LongMethod" )
37
+ @Suppress(" LargeClass" , " LongMethod" , " MaxLineLength " )
38
38
class CanonicalSpringKotlinTest {
39
39
private lateinit var template: NamedParameterJdbcTemplate
40
40
@@ -258,8 +258,7 @@ class CanonicalSpringKotlinTest {
258
258
set(addressId).toValue(1 )
259
259
}
260
260
261
- val expected = " insert into Person (id, first_name, last_name, birth_date," +
262
- " employed, occupation, address_id)" +
261
+ val expected = " insert into Person (id, first_name, last_name, birth_date, employed, occupation, address_id)" +
263
262
" values (:p1, :p2, :p3, :p4, :p5, :p6, :p7)"
264
263
265
264
assertThat(insertStatement.insertStatement).isEqualTo(expected)
@@ -460,18 +459,15 @@ class CanonicalSpringKotlinTest {
460
459
}
461
460
}
462
461
463
- val expected = " select id as A_ID, first_name, last_name, birth_date, " +
464
- " employed, occupation, address_id " +
462
+ val expected = " select id as A_ID, first_name, last_name, birth_date, employed, occupation, address_id " +
465
463
" from Person " +
466
464
" where id = :p1 " +
467
465
" union " +
468
- " select id as A_ID, first_name, last_name, birth_date, " +
469
- " employed, occupation, address_id " +
466
+ " select id as A_ID, first_name, last_name, birth_date, employed, occupation, address_id " +
470
467
" from Person " +
471
468
" where id = :p2 " +
472
469
" union " +
473
- " select p.id as A_ID, p.first_name, p.last_name, p.birth_date, " +
474
- " p.employed, p.occupation, p.address_id " +
470
+ " select p.id as A_ID, p.first_name, p.last_name, p.birth_date, p.employed, p.occupation, p.address_id " +
475
471
" from Person p " +
476
472
" where p.id = :p3"
477
473
@@ -536,18 +532,15 @@ class CanonicalSpringKotlinTest {
536
532
}
537
533
}
538
534
539
- val expected = " select id as A_ID, first_name, last_name, birth_date, " +
540
- " employed, occupation, address_id " +
535
+ val expected = " select id as A_ID, first_name, last_name, birth_date, employed, occupation, address_id " +
541
536
" from Person " +
542
537
" where id = :p1 " +
543
538
" union " +
544
- " select id as A_ID, first_name, last_name, birth_date, " +
545
- " employed, occupation, address_id " +
539
+ " select id as A_ID, first_name, last_name, birth_date, employed, occupation, address_id " +
546
540
" from Person " +
547
541
" where id = :p2 " +
548
542
" union " +
549
- " select distinct p.id as A_ID, p.first_name, p.last_name, p.birth_date, " +
550
- " p.employed, p.occupation, p.address_id " +
543
+ " select distinct p.id as A_ID, p.first_name, p.last_name, p.birth_date, p.employed, p.occupation, p.address_id " +
551
544
" from Person p " +
552
545
" where p.id = :p3"
553
546
@@ -613,18 +606,15 @@ class CanonicalSpringKotlinTest {
613
606
orderBy(sortColumn(" A_ID" ))
614
607
}
615
608
616
- val expected = " select id as A_ID, first_name, last_name, birth_date, " +
617
- " employed, occupation, address_id " +
609
+ val expected = " select id as A_ID, first_name, last_name, birth_date, employed, occupation, address_id " +
618
610
" from Person " +
619
611
" where id = :p1 " +
620
612
" union " +
621
- " select id as A_ID, first_name, last_name, birth_date, " +
622
- " employed, occupation, address_id " +
613
+ " select id as A_ID, first_name, last_name, birth_date, employed, occupation, address_id " +
623
614
" from Person " +
624
615
" where id = :p2 " +
625
616
" union all " +
626
- " select distinct p.id as A_ID, p.first_name, p.last_name, p.birth_date, " +
627
- " p.employed, p.occupation, p.address_id " +
617
+ " select distinct p.id as A_ID, p.first_name, p.last_name, p.birth_date, p.employed, p.occupation, p.address_id " +
628
618
" from Person p " +
629
619
" order by A_ID"
630
620
@@ -737,8 +727,7 @@ class CanonicalSpringKotlinTest {
737
727
limit(3 )
738
728
}
739
729
740
- val expected = " select id as A_ID, first_name, last_name, birth_date," +
741
- " employed, occupation, address_id" +
730
+ val expected = " select id as A_ID, first_name, last_name, birth_date, employed, occupation, address_id" +
742
731
" from Person" +
743
732
" where id < :p1" +
744
733
" and (id < :p2" +
0 commit comments