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 <[email protected]> AuthorDate: Thu Jul 13 14:42:56 2023 +0200 Camel-AWS2-CW: Fixed tests 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..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();
