diff --git a/compatibility/5.19/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_519/Neo4jProxyFactoryImpl.java b/compatibility/5.19/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_519/Neo4jProxyFactoryImpl.java index 5bfb47f4f2..1544a98946 100644 --- a/compatibility/5.19/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_519/Neo4jProxyFactoryImpl.java +++ b/compatibility/5.19/neo4j-kernel-adapter/src/main/java/org/neo4j/gds/compat/_519/Neo4jProxyFactoryImpl.java @@ -29,7 +29,7 @@ public final class Neo4jProxyFactoryImpl implements Neo4jProxyFactory { @Override public boolean canLoad(Neo4jVersion version) { - return version == Neo4jVersion.V_Dev; + return version == Neo4jVersion.V_5_19; } @Override diff --git a/neo4j-adapter/src/main/java/org/neo4j/gds/compat/Neo4jVersion.java b/neo4j-adapter/src/main/java/org/neo4j/gds/compat/Neo4jVersion.java index ede5c20581..3c2a8eea68 100644 --- a/neo4j-adapter/src/main/java/org/neo4j/gds/compat/Neo4jVersion.java +++ b/neo4j-adapter/src/main/java/org/neo4j/gds/compat/Neo4jVersion.java @@ -35,9 +35,10 @@ public enum Neo4jVersion { V_5_16, V_5_17, V_5_18, + V_5_19, V_Dev; - private static final int MINOR_DEV_VERSION = 19; + private static final int MINOR_DEV_VERSION = 20; static Neo4jVersion parse(String version) { var versionSegments = Pattern.compile("[.-]") @@ -76,6 +77,8 @@ static Neo4jVersion parse(String version) { return Neo4jVersion.V_5_17; case 18: return Neo4jVersion.V_5_18; + case 19: + return Neo4jVersion.V_5_19; default: if (minorVersion >= MINOR_DEV_VERSION) { return Neo4jVersion.V_Dev; @@ -148,6 +151,8 @@ public String toString() { return "5.17"; case V_5_18: return "5.18"; + case V_5_19: + return "5.19"; case V_Dev: return "dev"; default: diff --git a/neo4j-adapter/src/test/java/org/neo4j/gds/compat/Neo4jVersionTest.java b/neo4j-adapter/src/test/java/org/neo4j/gds/compat/Neo4jVersionTest.java index de1cacb2c1..9a95de36ef 100644 --- a/neo4j-adapter/src/test/java/org/neo4j/gds/compat/Neo4jVersionTest.java +++ b/neo4j-adapter/src/test/java/org/neo4j/gds/compat/Neo4jVersionTest.java @@ -43,7 +43,8 @@ class Neo4jVersionTest { "5.16.0, V_5_16", "5.17.0, V_5_17", "5.18.1, V_5_18", - "5.19.0, V_Dev", + "5.19.0, V_5_19", + "5.20.0, V_Dev", }) void testParse(String input, Neo4jVersion expected) { assertEquals(expected.name(), Neo4jVersion.parse(input).name()); @@ -95,6 +96,7 @@ void shouldNotRespectVersionOverride() { "5.16.0, 5, 16", "5.17.0, 5, 17", "5.18.1, 5, 18", + "5.19.0, 5, 19", } ) void semanticVersion(String input, int expectedMajor, int expectedMinor) { diff --git a/proc/sysinfo/src/test/java/org/neo4j/gds/SysInfoProcTest.java b/proc/sysinfo/src/test/java/org/neo4j/gds/SysInfoProcTest.java index ab9675b67a..99a190aaf6 100644 --- a/proc/sysinfo/src/test/java/org/neo4j/gds/SysInfoProcTest.java +++ b/proc/sysinfo/src/test/java/org/neo4j/gds/SysInfoProcTest.java @@ -78,6 +78,9 @@ class SysInfoProcTest extends BaseProcTest { "Neo4j 5.18", "Neo4j 5.18 (placeholder)", + "Neo4j 5.19", + "Neo4j 5.19 (placeholder)", + "Neo4j DEV", "Neo4j DEV (placeholder)", @@ -195,6 +198,14 @@ void testSysInfoProc() throws IOException { "Neo4j 5.18" ); break; + case V_5_19: + expectedCompatibilities = Set.of( + "Neo4j Settings 5.x (placeholder)", + "Neo4j Settings 5.x", + "Neo4j 5.19 (placeholder)", + "Neo4j 5.19" + ); + break; case V_Dev: expectedCompatibilities = Set.of( "Neo4j Settings 5.x",