Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. @NeedsCausalCluster
  2. @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
  3. @ContextConfiguration(initializers = { BookmarkLoadTest.Initializer.class })
  4. public class BookmarkLoadTest {
  5.  
  6. @Neo4jUri
  7. private static String clusterUri;
  8.  
  9. static class Initializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {
  10. public void initialize(ConfigurableApplicationContext configurableApplicationContext) {
  11. TestPropertyValues.of(
  12. "spring.data.neo4j.uri=" + clusterUri,
  13. "spring.data.neo4j.username=neo4j",
  14. "spring.data.neo4j.password=password"
  15. ).applyTo(configurableApplicationContext.getEnvironment());
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement