camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject camel git commit: Polish.
Date Sat, 04 Apr 2015 10:43:37 GMT
Repository: camel
Updated Branches:
  refs/heads/master 0d15092ab -> 4c261720d


Polish.

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

Branch: refs/heads/master
Commit: 4c261720d610b37a13bce73889bc9775f8857c13
Parents: 0d15092
Author: Babak Vahdat <bvahdat@apache.org>
Authored: Sat Apr 4 12:43:13 2015 +0200
Committer: Babak Vahdat <bvahdat@apache.org>
Committed: Sat Apr 4 12:43:13 2015 +0200

----------------------------------------------------------------------
 .../component/elasticsearch/ElasticsearchComponentTest.java   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4c261720/components/camel-elasticsearch/src/test/java/org/apache/camel/component/elasticsearch/ElasticsearchComponentTest.java
----------------------------------------------------------------------
diff --git a/components/camel-elasticsearch/src/test/java/org/apache/camel/component/elasticsearch/ElasticsearchComponentTest.java
b/components/camel-elasticsearch/src/test/java/org/apache/camel/component/elasticsearch/ElasticsearchComponentTest.java
index 715b5c2..318bdf5 100644
--- a/components/camel-elasticsearch/src/test/java/org/apache/camel/component/elasticsearch/ElasticsearchComponentTest.java
+++ b/components/camel-elasticsearch/src/test/java/org/apache/camel/component/elasticsearch/ElasticsearchComponentTest.java
@@ -67,7 +67,7 @@ public class ElasticsearchComponentTest extends CamelTestSupport {
         if (additionalPrefixes.length > 0) {
             StringBuilder sb = new StringBuilder(prefix);
             for (String additionalPrefix : additionalPrefixes) {
-                sb.append(additionalPrefix);
+                sb.append(additionalPrefix).append("-");
             }
             prefix = sb.toString();
         }
@@ -78,7 +78,6 @@ public class ElasticsearchComponentTest extends CamelTestSupport {
 
         Map<String, String> map = new HashMap<String, String>();
         map.put(key, value);
-
         return map;
     }
 
@@ -97,8 +96,8 @@ public class ElasticsearchComponentTest extends CamelTestSupport {
     @Test
     public void testBulkIndex() throws Exception {
         List<Map<String, String>> documents = new ArrayList<Map<String,
String>>();
-        Map<String, String> document1 = createIndexedData("-1");
-        Map<String, String> document2 = createIndexedData("-2");
+        Map<String, String> document1 = createIndexedData("1");
+        Map<String, String> document2 = createIndexedData("2");
 
         documents.add(document1);
         documents.add(document2);


Mime
View raw message