Skip to content

Commit abbefd6

Browse files
committed
Execute point ITs only against neo4j 3.4+
1 parent 293a683 commit abbefd6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

driver/src/main/java/org/neo4j/driver/internal/util/ServerVersion.java

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
public class ServerVersion
3030
{
31+
public static final ServerVersion v3_4_0 = new ServerVersion( 3, 4, 0 );
3132
public static final ServerVersion v3_2_0 = new ServerVersion( 3, 2, 0 );
3233
public static final ServerVersion v3_1_0 = new ServerVersion( 3, 1, 0 );
3334
public static final ServerVersion v3_0_0 = new ServerVersion( 3, 0, 0 );

driver/src/test/java/org/neo4j/driver/v1/integration/PointTypeIT.java

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
package org.neo4j.driver.v1.integration;
2020

21+
import org.junit.Before;
2122
import org.junit.Rule;
2223
import org.junit.Test;
2324

@@ -32,6 +33,8 @@
3233
import static java.util.Arrays.asList;
3334
import static java.util.Collections.singletonMap;
3435
import static org.junit.Assert.assertEquals;
36+
import static org.junit.Assume.assumeTrue;
37+
import static org.neo4j.driver.internal.util.ServerVersion.v3_4_0;
3538
import static org.neo4j.driver.v1.Values.point;
3639

3740
public class PointTypeIT
@@ -45,6 +48,12 @@ public class PointTypeIT
4548
@Rule
4649
public final TestNeo4jSession session = new TestNeo4jSession();
4750

51+
@Before
52+
public void setUp()
53+
{
54+
assumeTrue( session.version().greaterThanOrEqual( v3_4_0 ) );
55+
}
56+
4857
@Test
4958
public void shouldReceivePoint()
5059
{

0 commit comments

Comments
 (0)