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/07/13 12:43:40 UTC

[camel] 01/01: Camel-AWS2-CW: Fixed tests

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch aws-cw-tests
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 442b4bb4e8b1b1e82b294f99a1b93cb4af0dbc68
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jul 13 14:42:56 2023 +0200

    Camel-AWS2-CW: Fixed tests
    
    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..77e8dcd7c16 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();
+    private 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..b36875e4d5d 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();
+    private 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..27be5ebca19 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();
+    private Instant NOW = Instant.now();
 
-    private static final Instant LATER = Instant.ofEpochMilli(NOW.getNano() + 1);
+    private Instant LATER = Instant.ofEpochMilli(NOW.getNano() + 1);
 
     @BindToRegistry("amazonCwClient")
     private CloudWatchClient cloudWatchClient = new CloudWatchClientMock();