Upgrade to Neo4j Java Driver 5.12.0

Closes gh-37324
pull/37340/head
Stephane Nicoll 1 year ago
parent b8eeb8d7f8
commit 078b399a93

@ -118,7 +118,7 @@ class Neo4jAutoConfigurationIntegrationTests {
@Bean @Bean
AuthTokenManager authTokenManager() { AuthTokenManager authTokenManager() {
return AuthTokenManagers.expirationBased(() -> AuthTokens.basic("neo4j", neo4jServer.getAdminPassword()) return AuthTokenManagers.bearer(() -> AuthTokens.basic("neo4j", neo4jServer.getAdminPassword())
.expiringAt(System.currentTimeMillis() + 5_000)); .expiringAt(System.currentTimeMillis() + 5_000));
} }
@ -155,7 +155,7 @@ class Neo4jAutoConfigurationIntegrationTests {
@Bean @Bean
AuthTokenManager authTokenManager() { AuthTokenManager authTokenManager() {
return AuthTokenManagers.expirationBased(() -> AuthTokens.basic("wrongagain", "stillwrong") return AuthTokenManagers.bearer(() -> AuthTokens.basic("wrongagain", "stillwrong")
.expiringAt(System.currentTimeMillis() + 5_000)); .expiringAt(System.currentTimeMillis() + 5_000));
} }

@ -192,7 +192,7 @@ class Neo4jAutoConfigurationTests {
authentication.setPassword("Urlaub"); authentication.setPassword("Urlaub");
authentication.setRealm("Test Realm"); authentication.setRealm("Test Realm");
assertThat(new PropertiesNeo4jConnectionDetails(properties, assertThat(new PropertiesNeo4jConnectionDetails(properties,
AuthTokenManagers.expirationBased( AuthTokenManagers.bearer(
() -> AuthTokens.basic("username", "password").expiringAt(System.currentTimeMillis() + 5000))) () -> AuthTokens.basic("username", "password").expiringAt(System.currentTimeMillis() + 5000)))
.getAuthTokenManager()).isNotNull(); .getAuthTokenManager()).isNotNull();
} }

@ -1070,7 +1070,7 @@ bom {
] ]
} }
} }
library("Neo4j Java Driver", "5.11.0") { library("Neo4j Java Driver", "5.12.0") {
group("org.neo4j.driver") { group("org.neo4j.driver") {
modules = [ modules = [
"neo4j-java-driver" "neo4j-java-driver"

Loading…
Cancel
Save