Use current Neo4j version in testcontainers
See gh-34775
This commit is contained in:
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");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,7 +30,7 @@ import org.springframework.test.context.DynamicPropertySource;
|
||||
class MyIntegrationTests {
|
||||
|
||||
@Container
|
||||
static Neo4jContainer<?> neo4j = new Neo4jContainer<>("neo4j:4.2");
|
||||
static Neo4jContainer<?> neo4j = new Neo4jContainer<>("neo4j:5");
|
||||
|
||||
@Test
|
||||
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");
|
||||
* 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 {
|
||||
|
||||
@Container
|
||||
static Neo4jContainer<?> neo4j = new Neo4jContainer<>("neo4j:4.2");
|
||||
static Neo4jContainer<?> neo4j = new Neo4jContainer<>("neo4j:5");
|
||||
|
||||
@Test
|
||||
void myTest() {
|
||||
|
||||
@@ -36,7 +36,7 @@ internal class MyIntegrationTests {
|
||||
companion object {
|
||||
|
||||
@Container
|
||||
var neo4j: Neo4jContainer<*> = Neo4jContainer<Nothing>("neo4j:4.2")
|
||||
var neo4j: Neo4jContainer<*> = Neo4jContainer<Nothing>("neo4j:5")
|
||||
|
||||
@DynamicPropertySource
|
||||
fun neo4jProperties(registry: DynamicPropertyRegistry) {
|
||||
|
||||
@@ -33,7 +33,7 @@ internal class MyIntegrationTests {
|
||||
|
||||
companion object {
|
||||
@Container
|
||||
var neo4j: Neo4jContainer<*> = Neo4jContainer<Nothing>("neo4j:4.2")
|
||||
var neo4j: Neo4jContainer<*> = Neo4jContainer<Nothing>("neo4j:5")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user