Skip to content

Commit 2aa05ba

Browse files
committed
Merge branch 'master' of github.com:arangodb/arangodb-java-driver into feature/named-indices
2 parents cb9e004 + a0fd2bc commit 2aa05ba

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

src/test/java/com/arangodb/ArangoDBTest.java

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,17 @@ public void createAndDeleteDatabase() {
105105

106106
@Test
107107
public void getDatabases() {
108-
try {
109-
Collection<String> dbs = arangoDB.getDatabases();
110-
assertThat(dbs, is(notNullValue()));
111-
assertThat(dbs.size(), is(greaterThan(0)));
112-
final int dbCount = dbs.size();
113-
//assertThat(dbs.iterator().next(), is("_system"));
114-
assertThat(dbs, hasItem(BaseTest.TEST_DB));
115-
arangoDB.createDatabase(BaseTest.TEST_DB_CUSTOM);
116-
dbs = arangoDB.getDatabases();
117-
assertThat(dbs.size(), is(greaterThan(dbCount)));
118-
assertThat(dbs, hasItem("_system"));
119-
assertThat(dbs, hasItem(BaseTest.TEST_DB_CUSTOM));
120-
assertThat(dbs, hasItem(BaseTest.TEST_DB));
121-
} finally {
122-
arangoDB.db(BaseTest.TEST_DB_CUSTOM).drop();
123-
}
108+
Collection<String> dbs = arangoDB.getDatabases();
109+
assertThat(dbs, is(notNullValue()));
110+
assertThat(dbs.size(), is(greaterThan(0)));
111+
final int dbCount = dbs.size();
112+
assertThat(dbs.iterator().next(), is("_system"));
113+
arangoDB.createDatabase(BaseTest.TEST_DB_CUSTOM);
114+
dbs = arangoDB.getDatabases();
115+
assertThat(dbs.size(), is(greaterThan(dbCount)));
116+
assertThat(dbs, hasItem("_system"));
117+
assertThat(dbs, hasItem(BaseTest.TEST_DB_CUSTOM));
118+
arangoDB.db(BaseTest.TEST_DB_CUSTOM).drop();
124119
}
125120

126121
@Test

0 commit comments

Comments
 (0)