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
+
1
5
v4.1.1 (2016-11-09)
2
6
---------------------------
3
7
* changed json parsing of VelocyPack types not known in json
Original file line number Diff line number Diff line change 30
30
public class GraphEntity {
31
31
32
32
private String name ;
33
+ /**
34
+ * Special case where <code>_key</code> is used instead of <code>name</code>.
35
+ */
36
+ private String _key ;
33
37
private Collection <EdgeDefinition > edgeDefinitions ;
34
38
private Collection <String > orphanCollections ;
35
39
private Boolean isSmart ;
36
40
private Integer numberOfShards ;
37
41
private String smartGraphAttribute ;
38
42
39
43
public String getName () {
40
- return name ;
44
+ return name != null ? name : _key ;
41
45
}
42
46
43
47
public Collection <EdgeDefinition > getEdgeDefinitions () {
Original file line number Diff line number Diff line change @@ -691,6 +691,7 @@ public void getGraphs() {
691
691
final Collection <GraphEntity > graphs = db .getGraphs ();
692
692
assertThat (graphs , is (notNullValue ()));
693
693
assertThat (graphs .size (), is (1 ));
694
+ assertThat (graphs .iterator ().next ().getName (), is (GRAPH_NAME ));
694
695
} finally {
695
696
db .graph (GRAPH_NAME ).drop ();
696
697
}
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ public void getGraphs() {
95
95
final Collection <GraphEntity > graphs = db .getGraphs ();
96
96
assertThat (graphs , is (notNullValue ()));
97
97
assertThat (graphs .size (), is (1 ));
98
+ assertThat (graphs .iterator ().next ().getName (), is (GRAPH_NAME ));
98
99
}
99
100
100
101
@ Test
You can’t perform that action at this time.
0 commit comments