Browse Source

Upgrade to Neo4j Java Driver 5.7.0

Closes gh-34930
pull/35377/head
Stephane Nicoll 3 years ago
parent
commit
bd0561fc10
  1. 5
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/MockedDriverConfiguration.java
  2. 2
      spring-boot-project/spring-boot-dependencies/build.gradle

5
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/MockedDriverConfiguration.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -20,7 +20,6 @@ import org.mockito.ArgumentMatchers; @@ -20,7 +20,6 @@ import org.mockito.ArgumentMatchers;
import org.neo4j.driver.Driver;
import org.neo4j.driver.Session;
import org.neo4j.driver.SessionConfig;
import org.neo4j.driver.types.TypeSystem;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@ -40,9 +39,7 @@ class MockedDriverConfiguration { @@ -40,9 +39,7 @@ class MockedDriverConfiguration {
@Bean
Driver driver() {
Driver driver = mock(Driver.class);
TypeSystem typeSystem = mock(TypeSystem.class);
Session session = mock(Session.class);
given(driver.defaultTypeSystem()).willReturn(typeSystem);
given(driver.session(ArgumentMatchers.any(SessionConfig.class))).willReturn(session);
return driver;
}

2
spring-boot-project/spring-boot-dependencies/build.gradle

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

Loading…
Cancel
Save