Skip to content

[DE-322] v7 documentation #478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
loadpropertiesWithPrefix test
  • Loading branch information
rashtao committed Dec 22, 2022
commit feafb3f0cd862eb0ae1aed0c0fa818500b07f2b4
12 changes: 11 additions & 1 deletion driver/src/test/java/com/arangodb/ArangoDBTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,21 @@ void fallbackHost() {
@MethodSource("arangos")
void loadproperties() {
Throwable thrown = catchThrowable(() -> new ArangoDB.Builder()
.loadProperties(new FileConfigPropertiesProvider("arangodb", "/arangodb-bad.properties"))
.loadProperties(new FileConfigPropertiesProvider("arangodb", "arangodb-bad.properties"))
);
assertThat(thrown).isInstanceOf(ArangoDBException.class);
}

@ParameterizedTest(name = "{index}")
@MethodSource("arangos")
void loadpropertiesWithPrefix() {
ArangoDB adb = new ArangoDB.Builder()
.loadProperties(new FileConfigPropertiesProvider("adb", "arangodb-with-prefix.properties"))
.build();
adb.getVersion();
adb.shutdown();
}

@ParameterizedTest(name = "{index}")
@MethodSource("arangos")
void accessMultipleDatabases(ArangoDB arangoDB) {
Expand Down
3 changes: 3 additions & 0 deletions driver/src/test/resources/arangodb-with-prefix.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
adb.hosts=172.28.0.1:8529
adb.acquireHostList=true
adb.password=test