simplify tests

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

Branch: refs/heads/USERGRID-614
Commit: 738094b045ab3b7ca63e80358f6dcc521a7dc32b
Parents: 0ef6c24
Author: Shawn Feldman <[email protected]>
Authored: Wed May 6 13:29:25 2015 -0600
Committer: Shawn Feldman <[email protected]>
Committed: Wed May 6 13:29:25 2015 -0600

----------------------------------------------------------------------
 .../corepersistence/index/AsyncIndexServiceTest.java        | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/738094b0/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java
----------------------------------------------------------------------
diff --git 
a/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java
 
b/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java
index 19e73d3..29f3783 100644
--- 
a/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java
+++ 
b/stack/core/src/test/java/org/apache/usergrid/corepersistence/index/AsyncIndexServiceTest.java
@@ -150,7 +150,7 @@ public abstract class AsyncIndexServiceTest {
 
         //query until it's available
         final CandidateResults collectionResults = getResults( 
applicationEntityIndex, collectionSearchEdge,
-            SearchTypes.fromTypes( testEntity.getId().getType() ), "select *", 
100, 1, 100 );
+            SearchTypes.fromTypes( testEntity.getId().getType() ),  1, 100 );
 
         assertEquals( 1, collectionResults.size() );
 
@@ -162,7 +162,7 @@ public abstract class AsyncIndexServiceTest {
 
         //query until it's available
         final CandidateResults connectionResults = getResults( 
applicationEntityIndex, connectionSearchEdge,
-            SearchTypes.fromTypes( testEntity.getId().getType() ), "select *", 
100, 1, 100 );
+            SearchTypes.fromTypes( testEntity.getId().getType() ), 1, 100 );
 
         assertEquals( 1, connectionResults.size() );
 
@@ -171,8 +171,7 @@ public abstract class AsyncIndexServiceTest {
 
 
     private CandidateResults getResults( final ApplicationEntityIndex 
applicationEntityIndex,
-                                         final SearchEdge searchEdge, final 
SearchTypes searchTypes, final String ql,
-                                         final int count, final int 
expectedSize, final int attempts ) {
+                                         final SearchEdge searchEdge, final 
SearchTypes searchTypes, final int expectedSize, final int attempts ) {
 
 
         for ( int i = 0; i < attempts; i++ ) {
@@ -191,7 +190,7 @@ public abstract class AsyncIndexServiceTest {
             }
         }
 
-        fail( "Could not find candidates of size " + expectedSize + "after " + 
attempts + " attempts" );
+        fail( "Could not find candidates of size " + expectedSize + " after " 
+ attempts + " attempts" );
 
         //we'll never reach this, required for compile
         return null;

Reply via email to