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 2018/10/03 09:16:23 UTC

[camel] 06/09: Camel-AWS: Lets use AbstractAmazonSimpleDB in the AWS SDB Client Mock for tests

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 bda0d0c508cc4540cbaf1157977e3c7b25e31cce
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 3 10:33:16 2018 +0200

    Camel-AWS: Lets use AbstractAmazonSimpleDB in the AWS SDB Client Mock for tests
---
 .../org/apache/camel/component/aws/sdb/AmazonSDBClientMock.java    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/components/camel-aws/src/test/java/org/apache/camel/component/aws/sdb/AmazonSDBClientMock.java b/components/camel-aws/src/test/java/org/apache/camel/component/aws/sdb/AmazonSDBClientMock.java
index 2d51d58..2cd9e4f 100644
--- a/components/camel-aws/src/test/java/org/apache/camel/component/aws/sdb/AmazonSDBClientMock.java
+++ b/components/camel-aws/src/test/java/org/apache/camel/component/aws/sdb/AmazonSDBClientMock.java
@@ -18,8 +18,7 @@ package org.apache.camel.component.aws.sdb;
 
 import com.amazonaws.AmazonClientException;
 import com.amazonaws.AmazonServiceException;
-import com.amazonaws.auth.BasicAWSCredentials;
-import com.amazonaws.services.simpledb.AmazonSimpleDBClient;
+import com.amazonaws.services.simpledb.AbstractAmazonSimpleDB;
 import com.amazonaws.services.simpledb.model.Attribute;
 import com.amazonaws.services.simpledb.model.BatchDeleteAttributesRequest;
 import com.amazonaws.services.simpledb.model.BatchDeleteAttributesResult;
@@ -44,7 +43,7 @@ import com.amazonaws.services.simpledb.model.PutAttributesResult;
 import com.amazonaws.services.simpledb.model.SelectRequest;
 import com.amazonaws.services.simpledb.model.SelectResult;
 
-public class AmazonSDBClientMock extends AmazonSimpleDBClient {
+public class AmazonSDBClientMock extends AbstractAmazonSimpleDB {
     
     protected BatchDeleteAttributesRequest batchDeleteAttributesRequest;
     protected BatchPutAttributesRequest batchPutAttributesRequest;
@@ -58,7 +57,7 @@ public class AmazonSDBClientMock extends AmazonSimpleDBClient {
     protected SelectRequest selectRequest;
 
     public AmazonSDBClientMock() {
-        super(new BasicAWSCredentials("user", "secret"));
+        super();
     }
     
     @Override