incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Fixing unit test.
Date Tue, 03 Feb 2015 23:47:24 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master f8b2d4354 -> fb9b97df6


Fixing unit test.


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

Branch: refs/heads/master
Commit: fb9b97df615313db4df6392351f82de815a47fdc
Parents: f8b2d43
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Tue Feb 3 18:47:20 2015 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Tue Feb 3 18:47:20 2015 -0500

----------------------------------------------------------------------
 .../test/java/org/apache/blur/console/util/QueryUtilTest.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/fb9b97df/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java
----------------------------------------------------------------------
diff --git a/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java b/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java
index dcc2d9a..a5257ff 100644
--- a/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java
+++ b/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java
@@ -39,6 +39,8 @@ import org.apache.blur.thrift.generated.RowMutation;
 import org.apache.blur.thrift.generated.RowMutationType;
 import org.apache.blur.thrift.generated.ScoreType;
 import org.apache.blur.thrift.generated.TableDescriptor;
+import org.apache.blur.user.User;
+import org.apache.blur.user.UserContext;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -82,6 +84,7 @@ public class QueryUtilTest extends ConsoleTestBase {
   @Test
   public void testGetQueries() throws IOException, BlurException, TException {
     Iface client = Config.getClient();
+    UserContext.setUser(new User("testUser",null));
     BlurQuery query = new BlurQuery(
         new Query("fam0.col0:*", true, ScoreType.SUPER, null, null),
         null,
@@ -96,6 +99,8 @@ public class QueryUtilTest extends ConsoleTestBase {
       }
     }
     client.query("queryUnitTable", query);
+    
+    UserContext.reset();
 
     Map<String, Object> queries = QueryUtil.getQueries();
 


Mime
View raw message