You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/03/09 11:57:30 UTC

[camel] 02/03: CAMEL-17763: cleaned up unused exceptions in camel-azure-storage-queue

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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 8d6b86219a9762dab826dcad3575564299b6c702
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Mar 9 10:38:49 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-azure-storage-queue
---
 .../component/azure/storage/queue/operations/QueueOperationsTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-azure/camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/operations/QueueOperationsTest.java b/components/camel-azure/camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/operations/QueueOperationsTest.java
index ade403f..1ae5e81 100644
--- a/components/camel-azure/camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/operations/QueueOperationsTest.java
+++ b/components/camel-azure/camel-azure-storage-queue/src/test/java/org/apache/camel/component/azure/storage/queue/operations/QueueOperationsTest.java
@@ -59,7 +59,7 @@ public class QueueOperationsTest extends CamelTestSupport {
     @Test
     public void testDeleteMessage() {
         // mocking
-        final HttpHeaders httpHeaders = new HttpHeaders().put("x-test-header", "123");
+        final HttpHeaders httpHeaders = new HttpHeaders().set("x-test-header", "123");
         when(client.deleteMessage(any(), any(), any())).thenReturn(new ResponseBase<>(null, 200, httpHeaders, null, null));
 
         final QueueOperations operations = new QueueOperations(configuration, client);