You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/04/03 07:42:05 UTC

[camel] branch main updated: fixed string format (#9764)

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

davsclaus 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 6e07b2c3efe fixed string format (#9764)
6e07b2c3efe is described below

commit 6e07b2c3efef2a33ac1bc78bef4bad1cc39778d5
Author: dk2k <dk...@users.noreply.github.com>
AuthorDate: Mon Apr 3 10:41:58 2023 +0300

    fixed string format (#9764)
    
    Co-authored-by: dk2k <dk...@ya.ru>
---
 .../apache/camel/component/google/pubsub/unit/PubsubProducerTest.java | 2 +-
 .../org/apache/camel/test/junit/rule/mllp/MllpClientResource.java     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubProducerTest.java b/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubProducerTest.java
index 28c165949d5..56fb81d064c 100644
--- a/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubProducerTest.java
+++ b/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubProducerTest.java
@@ -42,7 +42,7 @@ public class PubsubProducerTest extends PubsubTestSupport {
         // :1 indicates first of a component type in Camel context
         Endpoint endpoint = context.hasEndpoint(String.format("google-pubsub:%s:%s", PROJECT_ID, TEST_TOPIC_NAME));
         assertNotNull(endpoint,
-                String.format("Endpoint 'google-pubsub:%s:$s' is not found in Camel Context", PROJECT_ID, TEST_TOPIC_NAME));
+                String.format("Endpoint 'google-pubsub:%s:%s' is not found in Camel Context", PROJECT_ID, TEST_TOPIC_NAME));
 
         Producer producer = endpoint.createProducer();
         assertTrue(producer instanceof GooglePubsubProducer);
diff --git a/components/camel-mllp/src/test/java/org/apache/camel/test/junit/rule/mllp/MllpClientResource.java b/components/camel-mllp/src/test/java/org/apache/camel/test/junit/rule/mllp/MllpClientResource.java
index e565d39861c..354e210c655 100644
--- a/components/camel-mllp/src/test/java/org/apache/camel/test/junit/rule/mllp/MllpClientResource.java
+++ b/components/camel-mllp/src/test/java/org/apache/camel/test/junit/rule/mllp/MllpClientResource.java
@@ -97,7 +97,7 @@ public class MllpClientResource implements BeforeEachCallback, AfterEachCallback
                 clientSocket.close();
             }
         } catch (IOException e) {
-            log.warn(String.format("Exception encountered closing connection to {}:{}", mllpHost, mllpPort), e);
+            log.warn(String.format("Exception encountered closing connection to %s:%s", mllpHost, mllpPort), e);
         } finally {
             inputStream = null;
             outputStream = null;
@@ -141,7 +141,7 @@ public class MllpClientResource implements BeforeEachCallback, AfterEachCallback
                 clientSocket.close();
             }
         } catch (IOException e) {
-            log.warn(String.format("Exception encountered resetting connection to {}:{}", mllpHost, mllpPort), e);
+            log.warn(String.format("Exception encountered resetting connection to %s:%s", mllpHost, mllpPort), e);
         } finally {
             inputStream = null;
             outputStream = null;