You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/05/06 06:51:32 UTC
[3/3] camel git commit: Fixed test
Fixed test
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f3a0f939
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f3a0f939
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f3a0f939
Branch: refs/heads/master
Commit: f3a0f9397c75233cd028e224a91d70b7c97d5ee5
Parents: a22289b
Author: Claus Ibsen <da...@apache.org>
Authored: Fri May 6 08:50:34 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri May 6 08:50:34 2016 +0200
----------------------------------------------------------------------
.../org/apache/camel/component/ignite/IgniteCacheTest.java | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/f3a0f939/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCacheTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCacheTest.java b/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCacheTest.java
index b936e1b..74edfa6 100644
--- a/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCacheTest.java
+++ b/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCacheTest.java
@@ -16,10 +16,8 @@
*/
package org.apache.camel.component.ignite;
-
-import java.util.ArrayList;
import java.util.HashSet;
-import java.util.Iterator;
+import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -27,8 +25,6 @@ import javax.cache.Cache.Entry;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterators;
-import com.google.common.collect.Lists;
import org.apache.camel.CamelException;
import org.apache.camel.component.ignite.cache.IgniteCacheOperation;
@@ -124,8 +120,7 @@ public class IgniteCacheTest extends AbstractIgniteTest {
}
});
- Iterator<String> iter = template.requestBodyAndHeader("ignite:cache:testcache1?operation=QUERY", keys, IgniteConstants.IGNITE_CACHE_QUERY, query, Iterator.class);
- ArrayList<Object> results = Lists.newArrayList(Iterators.toArray(iter, Object.class));
+ List results = template.requestBodyAndHeader("ignite:cache:testcache1?operation=QUERY", keys, IgniteConstants.IGNITE_CACHE_QUERY, query, List.class);
assert_().that(results.size()).isEqualTo(50);
}