incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twilli...@apache.org
Subject git commit: formatting/organize only
Date Fri, 26 Sep 2014 00:07:50 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master fdead86bf -> e2c876de7


formatting/organize only


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

Branch: refs/heads/master
Commit: e2c876de76ee3c9f8dc66b7ed15725aad0c62df1
Parents: fdead86
Author: twilliams <twilliams@apache.org>
Authored: Wed Sep 24 19:30:08 2014 -0400
Committer: twilliams <twilliams@apache.org>
Committed: Wed Sep 24 19:30:08 2014 -0400

----------------------------------------------------------------------
 .../apache/blur/command/TermsCommandTest.java   | 30 +++++++++-----------
 1 file changed, 14 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e2c876de/blur-command/src/test/java/org/apache/blur/command/TermsCommandTest.java
----------------------------------------------------------------------
diff --git a/blur-command/src/test/java/org/apache/blur/command/TermsCommandTest.java b/blur-command/src/test/java/org/apache/blur/command/TermsCommandTest.java
index 512cff9..543a2de 100644
--- a/blur-command/src/test/java/org/apache/blur/command/TermsCommandTest.java
+++ b/blur-command/src/test/java/org/apache/blur/command/TermsCommandTest.java
@@ -3,7 +3,6 @@ package org.apache.blur.command;
 import static org.junit.Assert.assertEquals;
 
 import java.io.IOException;
-import java.util.List;
 import java.util.Map;
 
 import org.junit.BeforeClass;
@@ -59,21 +58,21 @@ public class TermsCommandTest {
 
     assertEquals(expected, returned);
   }
-  
+
   @Test
   public void combineSizeShouldDefaultToTen() throws IOException, InterruptedException {
     Map<Shard, BlurArray> execResults = Maps.newHashMap();
     execResults.put(new Shard("t1", "s1"), new BlurArray(Lists.newArrayList("aa", "cc", "ee",
"gg", "ii")));
     execResults.put(new Shard("t1", "s2"), new BlurArray(Lists.newArrayList("bb", "dd", "ff",
"hh", "jj")));
-    
+
     BlurArray expected = new BlurArray(Lists.newArrayList("aa", "bb", "cc", "dd", "ee", "ff",
"gg", "hh", "ii", "jj"));
-    
+
     TermsCommand cmd = new TermsCommand();
     Args args = new Args();
     BlurObject params = new BlurObject();
     args.set("params", params);
     BlurArray returned = cmd.combine(new TestCombiningContext(args), execResults);
-    
+
     assertEquals(expected, returned);
   }
 
@@ -82,37 +81,36 @@ public class TermsCommandTest {
     Map<Shard, BlurArray> execResults = Maps.newHashMap();
     execResults.put(new Shard("t1", "s1"), new BlurArray(Lists.newArrayList("aa", "cc")));
     execResults.put(new Shard("t1", "s2"), new BlurArray(Lists.newArrayList("bb", "dd")));
-    
+
     BlurArray expected = new BlurArray(Lists.newArrayList("aa", "bb"));
-    
+
     TermsCommand cmd = new TermsCommand();
     Args args = new Args();
     BlurObject params = new BlurObject();
-    params.put("size", (short)2);
+    params.put("size", (short) 2);
     args.set("params", params);
-    
+
     BlurArray returned = cmd.combine(new TestCombiningContext(args), execResults);
-    
+
     assertEquals(expected, returned);
   }
-  
+
   @Test
   public void combineEmptyShouldGiveNiceEmptyList() throws IOException, InterruptedException
{
     Map<Shard, BlurArray> execResults = Maps.newHashMap();
     BlurArray expected = new BlurArray(Lists.newArrayList());
-    
+
     TermsCommand cmd = new TermsCommand();
     BlurArray returned = cmd.combine(new TestCombiningContext(), execResults);
-    
+
     assertEquals(expected, returned);
   }
-  
-  
+
   private BlurArray getExecuteResult(IndexContext context) throws IOException {
     TermsCommand cmd = new TermsCommand();
     return cmd.execute(context);
   }
-  
+
   private IndexContext newContext(String field, Short size, String startsWith) {
 
     Args args = new Args();


Mime
View raw message