File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/test/java/com/arangodb Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -194,21 +194,19 @@ public void getUsersOnlyRoot() {
194
194
@ Test
195
195
public void getUsers () {
196
196
try {
197
- // Allow & account for pre-existing users other than ROOT
197
+ // Allow & account for pre-existing users other than ROOT:
198
198
final Collection <UserEntity > initialUsers = arangoDB .getUsers ();
199
+
199
200
arangoDB .createUser (USER , PW , null );
200
201
final Collection <UserEntity > users = arangoDB .getUsers ();
201
202
assertThat (users , is (notNullValue ()));
202
203
assertThat (users .size (), is (initialUsers .size ()+1 ));
203
204
204
205
List <Matcher <? super String >> matchers = new ArrayList <Matcher <? super String >>(users .size ());
205
- // Add initial users, including root
206
- for (UserEntity userEntity : initialUsers ) {
207
- Matcher <String > matcher = is (userEntity .getUser ());
208
- if (!matchers .contains (matcher ))
209
- matchers .add (matcher );
210
- }
211
- // Add USER
206
+ // Add initial users, including root:
207
+ for (final UserEntity userEntity : initialUsers )
208
+ matchers .add (is (userEntity .getUser ()));
209
+ // Add USER:
212
210
matchers .add (is (USER ));
213
211
214
212
for (final UserEntity user : users ) {
You can’t perform that action at this time.
0 commit comments