Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit adc5305

Browse files
Remove unused imports.
1 parent cc1cfda commit adc5305

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

examples/testing-with-neo4j-harness/src/test/java/org/neo4j/doc/driver/springframework/boot/simple/MoviesServiceAlt4Test.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,14 @@
3030
import org.springframework.beans.factory.annotation.Autowired;
3131
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
3232
import org.springframework.boot.test.context.SpringBootTest;
33-
import org.springframework.boot.test.util.TestPropertyValues;
34-
import org.springframework.context.ApplicationContextInitializer;
35-
import org.springframework.context.ConfigurableApplicationContext;
36-
import org.springframework.test.context.ContextConfiguration;
3733
import org.springframework.test.context.DynamicPropertyRegistry;
3834
import org.springframework.test.context.DynamicPropertySource;
3935

4036
/**
41-
* This variant uses a custom {@link ApplicationContextInitializer} that modifies Springs configuration properties
42-
* with the help of {@link TestPropertyValues}. Thus, the autoconfiguration of the driver is kept and all other things
37+
* This variant uses a {@link DynamicPropertySource @ DynamicPropertySource} for providing dynamic values applicable in tests.
38+
* Thus, the autoconfiguration of the driver is kept and all other things
4339
* are as you'd expect in production.
44-
* <p>If you don't like that setup, look at {@link MoviesServiceAlt1Test}. Here, we expose the embedded server as a Spring Bean
40+
* <p>If you don't like that setup, look at {@link MoviesServiceAlt1Test}. There we expose the embedded server as a Spring Bean
4541
* and don't do the manual connection setting.
4642
*/
4743
// tag::test-harness-example-option4[]

0 commit comments

Comments
 (0)