Use current Neo4j version in testcontainers

See gh-34775
pull/34975/head
Gerrit Meier 2 years ago committed by Stephane Nicoll
parent 35b95f36f7
commit 96919b4fcd

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -30,7 +30,7 @@ import org.springframework.test.context.DynamicPropertySource;
class MyIntegrationTests { class MyIntegrationTests {
@Container @Container
static Neo4jContainer<?> neo4j = new Neo4jContainer<>("neo4j:4.2"); static Neo4jContainer<?> neo4j = new Neo4jContainer<>("neo4j:5");
@Test @Test
void myTest() { void myTest() {

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2021 the original author or authors. * Copyright 2012-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,7 +28,7 @@ import org.springframework.boot.test.context.SpringBootTest;
class MyIntegrationTests { class MyIntegrationTests {
@Container @Container
static Neo4jContainer<?> neo4j = new Neo4jContainer<>("neo4j:4.2"); static Neo4jContainer<?> neo4j = new Neo4jContainer<>("neo4j:5");
@Test @Test
void myTest() { void myTest() {

@ -36,7 +36,7 @@ internal class MyIntegrationTests {
companion object { companion object {
@Container @Container
var neo4j: Neo4jContainer<*> = Neo4jContainer<Nothing>("neo4j:4.2") var neo4j: Neo4jContainer<*> = Neo4jContainer<Nothing>("neo4j:5")
@DynamicPropertySource @DynamicPropertySource
fun neo4jProperties(registry: DynamicPropertyRegistry) { fun neo4jProperties(registry: DynamicPropertyRegistry) {

@ -33,7 +33,7 @@ internal class MyIntegrationTests {
companion object { companion object {
@Container @Container
var neo4j: Neo4jContainer<*> = Neo4jContainer<Nothing>("neo4j:4.2") var neo4j: Neo4jContainer<*> = Neo4jContainer<Nothing>("neo4j:5")
} }
} }

Loading…
Cancel
Save