File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/test/java/com/arangodb Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,28 @@ void hybridDisjointSmartGraph(ArangoDatabase db) {
385
385
assertThat (db .collection (v2Name ).getProperties ().getReplicationFactor ().getValue ()).isEqualTo (2 );
386
386
}
387
387
388
+ @ ParameterizedTest (name = "{index}" )
389
+ @ MethodSource ("dbs" )
390
+ void enterpriseGraph (ArangoDatabase db ) {
391
+ assumeTrue (isEnterprise ());
392
+ assumeTrue (isCluster ());
393
+
394
+ final Collection <EdgeDefinition > edgeDefinitions = new ArrayList <>();
395
+ edgeDefinitions .add (new EdgeDefinition ().collection ("enterpriseGraph-edge-" + rnd ()).from ("enterpriseGraph-vertex-" + rnd ()).to ("enterpriseGraph-vertex-" + rnd ()));
396
+
397
+ String graphId = GRAPH_NAME + rnd ();
398
+ final GraphEntity g = db .createGraph (graphId , edgeDefinitions , new GraphCreateOptions ().isSmart (true ).numberOfShards (2 ));
399
+
400
+ assertThat (g ).isNotNull ();
401
+ assertThat (g .getSmartGraphAttribute ()).isNull ();
402
+ assertThat (g .getNumberOfShards ()).isEqualTo (2 );
403
+ if (isAtLeastVersion (3 , 10 )) {
404
+ assertThat (g .getIsSmart ()).isTrue ();
405
+ } else {
406
+ assertThat (g .getIsSmart ()).isFalse ();
407
+ }
408
+ }
409
+
388
410
@ ParameterizedTest (name = "{index}" )
389
411
@ MethodSource ("dbs" )
390
412
void drop (ArangoDatabase db ) {
You can’t perform that action at this time.
0 commit comments