This repository was archived by the owner on Sep 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +11
-13
lines changed
src/test/java/org/neo4j/doc/driver/springframework/boot/ogm_integration
testing-with-neo4j-harness Expand file tree Collapse file tree 9 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >spring-boot-starter-parent</artifactId >
66 <groupId >org.springframework.boot</groupId >
7- <version >2.2.7 .RELEASE</version >
7+ <version >2.3.0 .RELEASE</version >
88 <relativePath ></relativePath >
99 </parent >
1010
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >spring-boot-starter-parent</artifactId >
66 <groupId >org.springframework.boot</groupId >
7- <version >2.2.7 .RELEASE</version >
7+ <version >2.3.0 .RELEASE</version >
88 <relativePath ></relativePath >
99 </parent >
1010
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >spring-boot-starter-parent</artifactId >
66 <groupId >org.springframework.boot</groupId >
7- <version >2.2.7 .RELEASE</version >
7+ <version >2.3.0 .RELEASE</version >
88 <relativePath ></relativePath >
99 </parent >
1010
Original file line number Diff line number Diff line change 2424import org .neo4j .driver .springframework .boot .autoconfigure .Neo4jDriverAutoConfiguration ;
2525import org .neo4j .driver .Driver ;
2626import org .neo4j .ogm .session .SessionFactory ;
27+ import org .springframework .beans .factory .ObjectProvider ;
2728import org .springframework .beans .factory .annotation .Autowired ;
2829import org .springframework .boot .autoconfigure .ImportAutoConfiguration ;
2930import org .springframework .boot .test .context .SpringBootTest ;
@@ -64,16 +65,13 @@ public class ApplicationTest {
6465 @ Autowired
6566 private BookmarkManager bookmarkManager ;
6667
67- @ Autowired
68- private OpenSessionInViewInterceptor openSessionInViewInterceptor ;
69-
7068 @ Test
71- void contextLoads () {
69+ void contextLoads (@ Autowired ObjectProvider < OpenSessionInViewInterceptor > openSessionInViewInterceptorProvider ) {
7270 assertThat (driver ).isNotNull ();
7371 assertThat (sessionFactory ).isNotNull ();
7472 assertThat (transactionManager ).isNotNull ();
7573 assertThat (bookmarkManager ).isNotNull ();
76- assertThat ( openSessionInViewInterceptor ). isNotNull ( );
74+ openSessionInViewInterceptorProvider . ifAvailable ( i -> fail ( "There should not be an OpenSessionInViewInterceptor by default." ) );
7775 }
7876
7977 static class Initializer implements ApplicationContextInitializer <ConfigurableApplicationContext > {
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >spring-boot-starter-parent</artifactId >
66 <groupId >org.springframework.boot</groupId >
7- <version >2.2.7 .RELEASE</version >
7+ <version >2.3.0 .RELEASE</version >
88 <relativePath ></relativePath >
99 </parent >
1010
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >spring-boot-starter-parent</artifactId >
66 <groupId >org.springframework.boot</groupId >
7- <version >2.2.7 .RELEASE</version >
7+ <version >2.3.0 .RELEASE</version >
88 <relativePath ></relativePath >
99 </parent >
1010
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >spring-boot-starter-parent</artifactId >
66 <groupId >org.springframework.boot</groupId >
7- <version >2.2.7 .RELEASE</version >
7+ <version >2.3.0 .RELEASE</version >
88 <relativePath ></relativePath >
99 </parent >
1010
Original file line number Diff line number Diff line change 44 <parent >
55 <artifactId >spring-boot-starter-parent</artifactId >
66 <groupId >org.springframework.boot</groupId >
7- <version >2.2.7 .RELEASE</version >
7+ <version >2.3.0 .RELEASE</version >
88 <relativePath ></relativePath >
99 </parent >
1010
Original file line number Diff line number Diff line change 2323 <parent >
2424 <artifactId >spring-boot-starter-parent</artifactId >
2525 <groupId >org.springframework.boot</groupId >
26- <version >2.2.7 .RELEASE</version >
26+ <version >2.3.0 .RELEASE</version >
2727 <relativePath ></relativePath >
2828 </parent >
2929
You can’t perform that action at this time.
0 commit comments