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