JAVA-20164 Upgrade java hibernate specific modules to JDK 11 (#13900)
* JAVA-20164 Upgrade java hibernate specific modules to JDK 11 * JAVA-20164 Migrating java-jpa-2 * JAVA-20164 Migrating jnosql-artemis * JAVA-20164 Migrating querydsl * JAVA-20164 Migrating r2dbc * JAVA-20164 Migrating redis * JAVA-20164 Fixing test JPATextUnitTest#givenExam_whenSaveExam_thenReturnExpectedExam * JAVA-20164 Fixing givenIdentityStrategy_whenCommitTransction_thenReturnPrimaryKey * JAVA-20164 Changes after review * JAVA-20164 Migrating java-cassandra to jdk8 * JAVA-20164 Fix legacy mode error * Update pom.xml --------- Co-authored-by: timis1 <[email protected]> Co-authored-by: Dhawal Kapil <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
timis1
Dhawal Kapil
parent
09e421c3cd
commit
e624a6c893
@@ -89,9 +89,9 @@
|
||||
</build>
|
||||
|
||||
<properties>
|
||||
<flyway.core.version>9.14.1</flyway.core.version>
|
||||
<jdbc.postgresql.version>42.5.2</jdbc.postgresql.version>
|
||||
<r2dbc.postgresql.version>1.0.0.RELEASE</r2dbc.postgresql.version>
|
||||
<flyway.core.version>9.16.0</flyway.core.version>
|
||||
<jdbc.postgresql.version>42.5.4</jdbc.postgresql.version>
|
||||
<r2dbc.postgresql.version>1.0.1.RELEASE</r2dbc.postgresql.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
||||
|
||||
+2
-3
@@ -29,9 +29,8 @@ public class DatasourceConfig {
|
||||
if ( !StringUtil.isNullOrEmpty(properties.getPassword())) {
|
||||
ob = ob.option(PASSWORD, properties.getPassword());
|
||||
}
|
||||
|
||||
ConnectionFactory cf = ConnectionFactories.get(ob.build());
|
||||
return cf;
|
||||
|
||||
return ConnectionFactories.get(ob.build());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@ spring:
|
||||
flyway:
|
||||
url: jdbc:postgresql://localhost:8082/flyway-test-db
|
||||
locations: classpath:db/postgres/migration
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
# R2DBC URL
|
||||
r2dbc:
|
||||
url: r2dbc:h2:mem://./testdb
|
||||
|
||||
+3
-9
@@ -55,9 +55,7 @@ public class R2dbcExampleApplicationIntegrationTest {
|
||||
.expectStatus()
|
||||
.isOk()
|
||||
.expectBody(Account.class)
|
||||
.value((acc) -> {
|
||||
assertThat(acc.getId(),is(1l));
|
||||
});
|
||||
.value((acc) -> assertThat(acc.getId(),is(1L)));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -71,9 +69,7 @@ public class R2dbcExampleApplicationIntegrationTest {
|
||||
.expectStatus()
|
||||
.isOk()
|
||||
.expectBody(List.class)
|
||||
.value((accounts) -> {
|
||||
assertThat(accounts.size(),not(is(0)));
|
||||
});
|
||||
.value((accounts) -> assertThat(accounts.size(),not(is(0))));
|
||||
}
|
||||
|
||||
|
||||
@@ -89,9 +85,7 @@ public class R2dbcExampleApplicationIntegrationTest {
|
||||
.expectStatus()
|
||||
.is2xxSuccessful()
|
||||
.expectBody(Account.class)
|
||||
.value((acc) -> {
|
||||
assertThat(acc.getId(),is(notNullValue()));
|
||||
});
|
||||
.value((acc) -> assertThat(acc.getId(),is(notNullValue())));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user