Skip to content

Commit

Permalink
System.properties not recognized if set in Test Resource #2572
Browse files Browse the repository at this point in the history
  • Loading branch information
zbendhiba committed May 11, 2021
1 parent b8e8161 commit 721e41f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import io.restassured.http.ContentType;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;
import org.eclipse.microprofile.config.ConfigProvider;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -135,8 +136,8 @@ public void testAQLQuery() {

@BeforeAll
public static void setup() {
String host = System.getProperty("camel.arangodb.host");
Integer port = Integer.valueOf(System.getProperty("camel.arangodb.port"));
String host = ConfigProvider.getConfig().getValue("camel.arangodb.host", String.class);
Integer port = ConfigProvider.getConfig().getValue("camel.arangodb.port", Integer.class);
arangoDb = new ArangoDB.Builder().host(host, port).build();
arangoDb.createDatabase(DATABASE_NAME);
ArangoDatabase arangoDatabase = arangoDb.db(DATABASE_NAME);
Expand Down

0 comments on commit 721e41f

Please sign in to comment.