This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push:
new 337cd17 Fix twitter itest in native mode using ConfigProvider insted
of ConfigProperty
337cd17 is described below
commit 337cd1715fd4ec4e6cadceae13b2cbadd6fa8e86
Author: Lukas Lowinger <[email protected]>
AuthorDate: Wed Dec 23 13:02:20 2020 +0100
Fix twitter itest in native mode using ConfigProvider insted of
ConfigProperty
---
.../apache/camel/quarkus/component/twitter/CamelTwitterTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/integration-tests/twitter/src/test/java/org/apache/camel/quarkus/component/twitter/CamelTwitterTest.java
b/integration-tests/twitter/src/test/java/org/apache/camel/quarkus/component/twitter/CamelTwitterTest.java
index e51d691..c5b9b44 100644
---
a/integration-tests/twitter/src/test/java/org/apache/camel/quarkus/component/twitter/CamelTwitterTest.java
+++
b/integration-tests/twitter/src/test/java/org/apache/camel/quarkus/component/twitter/CamelTwitterTest.java
@@ -23,7 +23,7 @@ import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import org.awaitility.Awaitility;
-import org.eclipse.microprofile.config.inject.ConfigProperty;
+import org.eclipse.microprofile.config.ConfigProvider;
import org.hamcrest.core.StringContains;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
@@ -32,8 +32,8 @@ import
org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
@EnabledIfEnvironmentVariable(named = "TWITTER_CONSUMER_KEY", matches =
"[a-zA-Z0-9]+")
public class CamelTwitterTest {
- @ConfigProperty(name = "test.twitter.delay.initial", defaultValue = "60")
- int testTwitterDelayInitial;
+ final int testTwitterDelayInitial =
ConfigProvider.getConfig().getOptionalValue("test.twitter.delay.initial",
Integer.class)
+ .orElse(60);
@Test
public void direct() {