You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by se...@apache.org on 2017/02/21 13:40:53 UTC

camel git commit: [CAMEL-10786] Adding a test

Repository: camel
Updated Branches:
  refs/heads/master 770e6cabf -> 5af6726de


[CAMEL-10786] Adding a test


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5af6726d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5af6726d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5af6726d

Branch: refs/heads/master
Commit: 5af6726dee764dcd75a181c7af4d3de3187786de
Parents: 770e6ca
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Tue Feb 21 13:40:38 2017 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Tue Feb 21 13:40:38 2017 +0000

----------------------------------------------------------------------
 .../azure/blob/BlobServiceComponentConfigurationTest.java   | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5af6726d/components/camel-azure/src/test/java/org/apache/camel/component/azure/blob/BlobServiceComponentConfigurationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-azure/src/test/java/org/apache/camel/component/azure/blob/BlobServiceComponentConfigurationTest.java b/components/camel-azure/src/test/java/org/apache/camel/component/azure/blob/BlobServiceComponentConfigurationTest.java
index b9195e3..710611d 100644
--- a/components/camel-azure/src/test/java/org/apache/camel/component/azure/blob/BlobServiceComponentConfigurationTest.java
+++ b/components/camel-azure/src/test/java/org/apache/camel/component/azure/blob/BlobServiceComponentConfigurationTest.java
@@ -237,6 +237,15 @@ public class BlobServiceComponentConfigurationTest extends CamelTestSupport {
         }
     }
     
+    @Test
+    public void testHierarchicalBlobName() throws Exception {
+        registerCredentials();
+        BlobServiceComponent component = new BlobServiceComponent(context);
+        BlobServiceEndpoint endpoint = 
+            (BlobServiceEndpoint)component.createEndpoint("azure-blob://camelazure/component1/blob/sub?credentials=#creds");
+        assertEquals("blob/sub", endpoint.getConfiguration().getBlobName());
+    }
+    
     private static void createConsumer(Endpoint endpoint) throws Exception {
         endpoint.createConsumer(new Processor() {
             @Override