camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] 03/03: CAMEL-12071 made unit tests fail in expected way
Date Thu, 07 Dec 2017 14:08:17 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 45fd0143a461122f63f54ba1f9af5a6334d9afa1
Author: PyvesB <pierre-yves.bigourdan@bbc.co.uk>
AuthorDate: Thu Dec 7 13:59:48 2017 +0000

    CAMEL-12071 made unit tests fail in expected way
---
 .../java/org/apache/camel/component/aws/sqs/SqsEndpointTest.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-aws/src/test/java/org/apache/camel/component/aws/sqs/SqsEndpointTest.java
b/components/camel-aws/src/test/java/org/apache/camel/component/aws/sqs/SqsEndpointTest.java
index 18aef1e..4f4eb22 100644
--- a/components/camel-aws/src/test/java/org/apache/camel/component/aws/sqs/SqsEndpointTest.java
+++ b/components/camel-aws/src/test/java/org/apache/camel/component/aws/sqs/SqsEndpointTest.java
@@ -83,7 +83,7 @@ public class SqsEndpointTest {
         CreateQueueRequest expectedCreateQueueRequest = new CreateQueueRequest("test-queue.fifo")
                 .addAttributesEntry(QueueAttributeName.FifoQueue.name(), "true")
                 .addAttributesEntry(QueueAttributeName.ContentBasedDeduplication.name(),
"true");
-        Mockito.when(amazonSQSClient.createQueue(expectedCreateQueueRequest))
+        Mockito.when(amazonSQSClient.createQueue(Mockito.any(CreateQueueRequest.class)))
                 .thenReturn(new CreateQueueResult()
                                 .withQueueUrl("https://sqs.us-east-1.amazonaws.com/111222333/test-queue.fifo"));
 
@@ -101,7 +101,7 @@ public class SqsEndpointTest {
         CreateQueueRequest expectedCreateQueueRequest = new CreateQueueRequest("test-queue.fifo")
                 .addAttributesEntry(QueueAttributeName.FifoQueue.name(), "true")
                 .addAttributesEntry(QueueAttributeName.ContentBasedDeduplication.name(),
"false");
-        Mockito.when(amazonSQSClient.createQueue(expectedCreateQueueRequest))
+        Mockito.when(amazonSQSClient.createQueue(Mockito.any(CreateQueueRequest.class)))
                 .thenReturn(new CreateQueueResult()
                                 .withQueueUrl("https://sqs.us-east-1.amazonaws.com/111222333/test-queue.fifo"));
 
@@ -127,7 +127,7 @@ public class SqsEndpointTest {
                 .addAttributesEntry(QueueAttributeName.Policy.name(), "{\"Version\": \"2012-10-17\"}")
                 .addAttributesEntry(QueueAttributeName.ReceiveMessageWaitTimeSeconds.name(),
"5")
                 .addAttributesEntry(QueueAttributeName.RedrivePolicy.name(), "{ \"deadLetterTargetArn\"
: String, \"maxReceiveCount\" : Integer }");
-        Mockito.when(amazonSQSClient.createQueue(expectedCreateQueueRequest))
+        Mockito.when(amazonSQSClient.createQueue(Mockito.any(CreateQueueRequest.class)))
                 .thenReturn(new CreateQueueResult()
                                 .withQueueUrl("https://sqs.us-east-1.amazonaws.com/111222333/test-queue"));
 

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <commits@camel.apache.org>.

Mime
View raw message