usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject incubator-usergrid git commit: Fixes test
Date Tue, 04 Aug 2015 00:01:57 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/master 229229a87 -> be745780e


Fixes test


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/be745780
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/be745780
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/be745780

Branch: refs/heads/master
Commit: be745780e069c89ee690af749a0aa3abbe1b20a8
Parents: 229229a
Author: Todd Nine <tnine@apigee.com>
Authored: Mon Aug 3 18:01:54 2015 -0600
Committer: Todd Nine <tnine@apigee.com>
Committed: Mon Aug 3 18:01:54 2015 -0600

----------------------------------------------------------------------
 .../persistence/query/ir/result/ShardFilterIteratorTest.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/be745780/stack/core/src/test/java/org/apache/usergrid/persistence/query/ir/result/ShardFilterIteratorTest.java
----------------------------------------------------------------------
diff --git a/stack/core/src/test/java/org/apache/usergrid/persistence/query/ir/result/ShardFilterIteratorTest.java
b/stack/core/src/test/java/org/apache/usergrid/persistence/query/ir/result/ShardFilterIteratorTest.java
index 648b137..156eb64 100644
--- a/stack/core/src/test/java/org/apache/usergrid/persistence/query/ir/result/ShardFilterIteratorTest.java
+++ b/stack/core/src/test/java/org/apache/usergrid/persistence/query/ir/result/ShardFilterIteratorTest.java
@@ -20,6 +20,7 @@
 package org.apache.usergrid.persistence.query.ir.result;
 
 
+import java.util.Collection;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.LinkedHashSet;
@@ -75,10 +76,13 @@ public class ShardFilterIteratorTest {
 
         for ( final String shard : shards.keySet() ) {
             //create a copy of our expected uuids
-            final Set<ScanColumn> expected = new HashSet<ScanColumn>( shards.get(
shard ) );
 
+            final Collection<ScanColumn> shardColumns = shards.get( shard );
 
-            final TestIterator testIterator = new TestIterator( new HashSet<ScanColumn>(
shards.get( shard ) ) );
+            final Set<ScanColumn> expected = new HashSet<ScanColumn>( shardColumns
);
+
+
+            final TestIterator testIterator = new TestIterator( new HashSet<ScanColumn>(
shardColumns ) );
 
 
             final TestEntityFilter collectionSliceShardFilter =


Mime
View raw message