File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed
main/java/com/arangodb/entity Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ v4.1.2 (2016-11-xx)
2+ ---------------------------
3+ * fixed GraphEntity for ArangoDatabase.getGraphs() (field name is null)
4+
15v4.1.1 (2016-11-09)
26---------------------------
37* changed json parsing of VelocyPack types not known in json
Original file line number Diff line number Diff line change 3030public class GraphEntity {
3131
3232 private String name ;
33+ /**
34+ * Special case where <code>_key</code> is used instead of <code>name</code>.
35+ */
36+ private String _key ;
3337 private Collection <EdgeDefinition > edgeDefinitions ;
3438 private Collection <String > orphanCollections ;
3539 private Boolean isSmart ;
3640 private Integer numberOfShards ;
3741 private String smartGraphAttribute ;
3842
3943 public String getName () {
40- return name ;
44+ return name != null ? name : _key ;
4145 }
4246
4347 public Collection <EdgeDefinition > getEdgeDefinitions () {
Original file line number Diff line number Diff line change @@ -691,6 +691,7 @@ public void getGraphs() {
691691 final Collection <GraphEntity > graphs = db .getGraphs ();
692692 assertThat (graphs , is (notNullValue ()));
693693 assertThat (graphs .size (), is (1 ));
694+ assertThat (graphs .iterator ().next ().getName (), is (GRAPH_NAME ));
694695 } finally {
695696 db .graph (GRAPH_NAME ).drop ();
696697 }
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ public void getGraphs() {
9595 final Collection <GraphEntity > graphs = db .getGraphs ();
9696 assertThat (graphs , is (notNullValue ()));
9797 assertThat (graphs .size (), is (1 ));
98+ assertThat (graphs .iterator ().next ().getName (), is (GRAPH_NAME ));
9899 }
99100
100101 @ Test
You can’t perform that action at this time.
0 commit comments