This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ce787170cbd Camel-AWS2-CW: Fixed tests after CAMEL-19833 (#11357)
ce787170cbd is described below
commit ce787170cbd24cac22e1b05a31e74e712775f201
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Sep 11 09:05:23 2023 +0200
Camel-AWS2-CW: Fixed tests after CAMEL-19833 (#11357)
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../apache/camel/component/aws2/cw/CwComponentConfigurationTest.java | 2 +-
.../apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java | 2 +-
.../test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentConfigurationTest.java
b/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentConfigurationTest.java
index 77295f54e95..9ea0d78c263 100644
---
a/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentConfigurationTest.java
+++
b/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentConfigurationTest.java
@@ -32,7 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
public class CwComponentConfigurationTest extends CamelTestSupport {
@BindToRegistry("now")
- private static final Instant NOW = Instant.now();
+ public static final Instant NOW = Instant.now();
@Test
public void createEndpointWithAllOptions() throws Exception {
diff --git
a/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java
b/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java
index b833fe43aa8..aac44d55926 100644
---
a/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java
+++
b/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java
@@ -30,7 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
public class CwComponentRegistryClientTest extends CamelTestSupport {
@BindToRegistry("now")
- private static final Instant NOW = Instant.now();
+ public static final Instant NOW = Instant.now();
@Test
public void createEndpointWithAllOptions() throws Exception {
diff --git
a/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java
b/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java
index 8e4acf110b5..2d7fa904f8f 100644
---
a/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java
+++
b/components/camel-aws/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java
@@ -32,9 +32,9 @@ import
software.amazon.awssdk.services.cloudwatch.model.StandardUnit;
public class CwComponentTest extends CamelTestSupport {
@BindToRegistry("now")
- private static final Instant NOW = Instant.now();
+ public static final Instant NOW = Instant.now();
- private static final Instant LATER = Instant.ofEpochMilli(NOW.getNano() +
1);
+ public static final Instant LATER = Instant.ofEpochMilli(NOW.getNano() +
1);
@BindToRegistry("amazonCwClient")
private CloudWatchClient cloudWatchClient = new CloudWatchClientMock();