42
42
import org .junit .BeforeClass ;
43
43
import org .junit .ClassRule ;
44
44
import org .junit .Test ;
45
+ import org .neo4j .configuration .GraphDatabaseInternalSettings ;
45
46
import org .neo4j .graphdb .Label ;
46
47
import org .neo4j .graphdb .QueryExecutionException ;
47
48
import org .neo4j .graphdb .RelationshipType ;
50
51
import org .neo4j .test .rule .DbmsRule ;
51
52
import org .neo4j .test .rule .ImpermanentDbmsRule ;
52
53
import org .neo4j .values .storable .RandomValues ;
53
- import org .neo4j .values .storable .ValueCategory ;
54
54
import org .neo4j .values .storable .ValueType ;
55
55
56
56
/**
@@ -63,7 +63,10 @@ public class UtilsTest {
63
63
private static final String COMPLEX_STRING = "Mätrix II 哈哈\uD83D \uDE04 123" ;
64
64
65
65
@ ClassRule
66
- public static DbmsRule db = new ImpermanentDbmsRule ();
66
+ public static DbmsRule db = new ImpermanentDbmsRule ()
67
+ .withSetting (GraphDatabaseInternalSettings .cypher_enable_vector_type , true )
68
+ .withSetting (GraphDatabaseInternalSettings .latest_kernel_version , Byte .MAX_VALUE )
69
+ .withSetting (GraphDatabaseInternalSettings .latest_runtime_version , Integer .MAX_VALUE );
67
70
68
71
@ BeforeClass
69
72
public static void setUp () {
@@ -340,7 +343,6 @@ public void hashIsStable(String hashFunc) {
340
343
final var seed = new Random ().nextLong ();
341
344
final var rand = RandomValues .create (new Random (seed ));
342
345
final var randStorables = stream (ValueType .values ())
343
- .filter (t -> t .valueGroup .category ().equals (ValueCategory .VECTOR ))
344
346
.map (t -> rand .nextValueOfType (t ).asObject ())
345
347
.toList ();
346
348
final var randMap =
0 commit comments