File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed
spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect
spring-data-relational/src/test/java/org/springframework/data/relational/core/dialect Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1515 */
1616package org .springframework .data .jdbc .core .dialect ;
1717
18+ import static org .assertj .core .api .Assertions .*;
19+
1820import java .time .Instant ;
1921import java .util .List ;
2022
21- import org .assertj .core .api .Assertions ;
2223import org .junit .jupiter .api .Test ;
24+
2325import org .springframework .data .jdbc .core .convert .JdbcCustomConversions ;
2426
2527/**
2931 */
3032class JdbcSqlServerDialectTest {
3133
32- @ Test // GH-1873
33- void testCustomConversions () {
34+ @ Test // GH-1873
35+ void testCustomConversions () {
3436
35- JdbcCustomConversions jdbcCustomConversions = new JdbcCustomConversions (
36- (List <?>) JdbcSqlServerDialect .INSTANCE .getConverters ());
37+ JdbcCustomConversions conversions = JdbcCustomConversions .of (JdbcSqlServerDialect .INSTANCE , List .of ());
3738
38- Assertions
39- .assertThat (jdbcCustomConversions .hasCustomReadTarget (microsoft .sql .DateTimeOffset .class , Instant .class ))
40- .isTrue ();
41- }
42- }
39+ assertThat (conversions .hasCustomReadTarget (microsoft .sql .DateTimeOffset .class , Instant .class ))
40+ .isTrue ();
41+ }
42+ }
Original file line number Diff line number Diff line change 3030 * @author Mark Paluch
3131 * @author Myeonghyeon Lee
3232 */
33- public class SqlServerDialectUnitTests {
33+ class SqlServerDialectUnitTests {
3434
3535@ Test // DATAJDBC-278
36- public void shouldNotSupportArrays () {
36+ void shouldNotSupportArrays () {
3737
3838ArrayColumns arrayColumns = SqlServerDialect .INSTANCE .getArraySupport ();
3939
@@ -42,7 +42,7 @@ public void shouldNotSupportArrays() {
4242}
4343
4444@ Test // DATAJDBC-278
45- public void shouldRenderLimit () {
45+ void shouldRenderLimit () {
4646
4747LimitClause limit = SqlServerDialect .INSTANCE .limit ();
4848
@@ -51,23 +51,23 @@ public void shouldRenderLimit() {
5151}
5252
5353@ Test // DATAJDBC-278
54- public void shouldRenderOffset () {
54+ void shouldRenderOffset () {
5555
5656LimitClause limit = SqlServerDialect .INSTANCE .limit ();
5757
5858assertThat (limit .getOffset (10 )).isEqualTo ("OFFSET 10 ROWS" );
5959}
6060
6161@ Test // DATAJDBC-278
62- public void shouldRenderLimitOffset () {
62+ void shouldRenderLimitOffset () {
6363
6464LimitClause limit = SqlServerDialect .INSTANCE .limit ();
6565
6666assertThat (limit .getLimitOffset (20 , 10 )).isEqualTo ("OFFSET 10 ROWS FETCH NEXT 20 ROWS ONLY" );
6767}
6868
6969@ Test // DATAJDBC-498
70- public void shouldRenderLock () {
70+ void shouldRenderLock () {
7171
7272LockClause lock = SqlServerDialect .INSTANCE .lock ();
7373From from = mock (From .class );
You can’t perform that action at this time.
0 commit comments