File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/test/java/com/arangodb Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ public void getAccessibleDatabases() {
114114 final ArangoDB arangoDB = new ArangoDB .Builder ().build ();
115115 final Collection <String > dbs = arangoDB .getAccessibleDatabases ();
116116 assertThat (dbs , is (notNullValue ()));
117- assertThat (dbs .size (), is ( 1 ));
118- assertThat (dbs . iterator (). next (), is ("_system" ));
117+ assertThat (dbs .size (), greaterThan ( 0 ));
118+ assertThat (dbs , hasItem ("_system" ));
119119 }
120120
121121 @ Test
@@ -164,8 +164,7 @@ public void getUsersOnlyRoot() {
164164 final ArangoDB arangoDB = new ArangoDB .Builder ().build ();
165165 final Collection <UserEntity > users = arangoDB .getUsers ();
166166 assertThat (users , is (notNullValue ()));
167- assertThat (users .size (), is (1 ));
168- assertThat (users .iterator ().next ().getUser (), is (ROOT ));
167+ assertThat (users .size (), greaterThan (0 ));
169168 }
170169
171170 @ Test
You can’t perform that action at this time.
0 commit comments