@@ -273,7 +273,7 @@ class CanonicalSpringKotlinTest {
273
273
val record = template.selectOne(id, firstName, lastName, birthDate, employed, occupation, addressId)
274
274
.from(Person ) {
275
275
where(id, isEqualTo(100 ))
276
- }.withRowMapper(:: personRowMapper)
276
+ }.withRowMapper(personRowMapper)
277
277
278
278
assertThat(rows).isEqualTo(1 )
279
279
with (record!! ) {
@@ -402,7 +402,7 @@ class CanonicalSpringKotlinTest {
402
402
limit(3 )
403
403
}
404
404
405
- val rows = template.selectList(selectStatement, :: personRowMapper)
405
+ val rows = template.selectList(selectStatement, personRowMapper)
406
406
407
407
assertThat(rows).hasSize(2 )
408
408
with (rows[0 ]) {
@@ -425,7 +425,7 @@ class CanonicalSpringKotlinTest {
425
425
where(id, isEqualTo(300 ))
426
426
}
427
427
428
- val record = template.selectOne(selectStatement, :: personRowMapper)
428
+ val record = template.selectOne(selectStatement, personRowMapper)
429
429
430
430
assertThat(record).isNull()
431
431
}
@@ -439,7 +439,7 @@ class CanonicalSpringKotlinTest {
439
439
where(id, isEqualTo(1 ))
440
440
}
441
441
442
- val record = template.selectOne(selectStatement, :: personRowMapper)
442
+ val record = template.selectOne(selectStatement, personRowMapper)
443
443
444
444
with (record!! ) {
445
445
assertThat(id).isEqualTo(1 )
@@ -491,7 +491,7 @@ class CanonicalSpringKotlinTest {
491
491
492
492
assertThat(selectStatement.selectStatement).isEqualTo(expected)
493
493
494
- val records = template.selectList(selectStatement, :: personRowMapper)
494
+ val records = template.selectList(selectStatement, personRowMapper)
495
495
496
496
assertThat(records).hasSize(3 )
497
497
with (records[0 ]) {
@@ -554,7 +554,7 @@ class CanonicalSpringKotlinTest {
554
554
555
555
assertThat(selectStatement.selectStatement).isEqualTo(expected)
556
556
557
- val records = template.selectList(selectStatement, :: personRowMapper)
557
+ val records = template.selectList(selectStatement, personRowMapper)
558
558
559
559
assertThat(records).hasSize(3 )
560
560
with (records[0 ]) {
@@ -617,7 +617,7 @@ class CanonicalSpringKotlinTest {
617
617
618
618
assertThat(selectStatement.selectStatement).isEqualTo(expected)
619
619
620
- val records = template.selectList(selectStatement, :: personRowMapper)
620
+ val records = template.selectList(selectStatement, personRowMapper)
621
621
622
622
assertThat(records).hasSize(3 )
623
623
with (records[0 ]) {
@@ -681,7 +681,7 @@ class CanonicalSpringKotlinTest {
681
681
682
682
assertThat(selectStatement.selectStatement).isEqualTo(expected)
683
683
684
- val records = template.selectList(selectStatement, :: personRowMapper)
684
+ val records = template.selectList(selectStatement, personRowMapper)
685
685
686
686
assertThat(records).hasSize(8 )
687
687
with (records[0 ]) {
@@ -727,7 +727,7 @@ class CanonicalSpringKotlinTest {
727
727
728
728
assertThat(selectStatement.selectStatement).isEqualTo(expected)
729
729
730
- val rows = template.selectList(selectStatement, :: personWithAddressRowMapper)
730
+ val rows = template.selectList(selectStatement, personWithAddressRowMapper)
731
731
732
732
733
733
with (rows[0 ]) {
@@ -769,7 +769,7 @@ class CanonicalSpringKotlinTest {
769
769
770
770
assertThat(selectStatement.selectStatement).isEqualTo(expected)
771
771
772
- val rows = template.selectList(selectStatement, :: personRowMapper)
772
+ val rows = template.selectList(selectStatement, personRowMapper)
773
773
774
774
assertThat(rows).hasSize(1 )
775
775
with (rows[0 ]) {
@@ -808,7 +808,7 @@ class CanonicalSpringKotlinTest {
808
808
809
809
assertThat(selectStatement.selectStatement).isEqualTo(expected)
810
810
811
- val rows = template.selectList(selectStatement, :: personRowMapper)
811
+ val rows = template.selectList(selectStatement, personRowMapper)
812
812
813
813
assertThat(rows).hasSize(3 )
814
814
with (rows[2 ]) {
@@ -957,7 +957,7 @@ class CanonicalSpringKotlinTest {
957
957
where(id, isEqualTo(record::id))
958
958
}
959
959
960
- val returnedRecord = template.selectOne(selectStatement, :: personRowMapper)
960
+ val returnedRecord = template.selectOne(selectStatement, personRowMapper)
961
961
assertThat(returnedRecord).isNotNull()
962
962
assertThat(returnedRecord!! .lastName).isNull()
963
963
}
@@ -993,7 +993,7 @@ class CanonicalSpringKotlinTest {
993
993
where(id, isEqualTo(record::id))
994
994
}
995
995
996
- val returnedRecord = template.selectOne(selectStatement, :: personRowMapper)
996
+ val returnedRecord = template.selectOne(selectStatement, personRowMapper)
997
997
assertThat(returnedRecord).isNotNull()
998
998
assertThat(returnedRecord!! .lastName?.name).isEqualTo(" Smith" )
999
999
}
0 commit comments