You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/09/11 06:46:20 UTC
[camel] 01/01: Camel-AWS2-CW: Fixed tests after CAMEL-19833
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch aws2-cw
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 4a4d7317bd4a19dfc23dadba80f26f6c0ccd695e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Sep 11 08:45:30 2023 +0200
Camel-AWS2-CW: Fixed tests after CAMEL-19833
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../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();