File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/test/java/com/arangodb Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -418,4 +418,21 @@ public void fallbackHost() {
418418 public void loadproperties () {
419419 new ArangoDB .Builder ().loadProperties (ArangoDBTest .class .getResourceAsStream ("/arangodb-bad.properties" ));
420420 }
421+
422+ @ Test
423+ public void accessMultipleDatabases () {
424+ final ArangoDB arangoDB = new ArangoDB .Builder ().build ();
425+ try {
426+ arangoDB .createDatabase ("db1" );
427+ arangoDB .createDatabase ("db2" );
428+
429+ final ArangoDBVersion version1 = arangoDB .db ("db1" ).getVersion ();
430+ assertThat (version1 , is (notNullValue ()));
431+ final ArangoDBVersion version2 = arangoDB .db ("db2" ).getVersion ();
432+ assertThat (version2 , is (notNullValue ()));
433+ } finally {
434+ arangoDB .db ("db1" ).drop ();
435+ arangoDB .db ("db2" ).drop ();
436+ }
437+ }
421438}
You can’t perform that action at this time.
0 commit comments