incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Adding another user context call in a test.
Date Fri, 06 Feb 2015 02:26:53 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 86a795b68 -> 3f898b82e


Adding another user context call in a 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/3f898b82
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/3f898b82
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/3f898b82

Branch: refs/heads/master
Commit: 3f898b82e0f26bb61a5771b7c2c73a199f29ab48
Parents: 86a795b
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Thu Feb 5 21:26:49 2015 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Thu Feb 5 21:26:49 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/3f898b82/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 a5257ff..42ae8a2 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
@@ -69,6 +69,7 @@ public class QueryUtilTest extends ConsoleTestBase {
 
   @Test
   public void testGetCurrentQueryCount() throws BlurException, IOException, TException {
+    UserContext.setUser(new User("testUser",null));
     Iface client = Config.getClient();
     BlurQuery query = new BlurQuery(
         new Query("fam0.col0:*", true, ScoreType.SUPER, null, null),
@@ -78,6 +79,7 @@ public class QueryUtilTest extends ConsoleTestBase {
     int currentCount = QueryUtil.getCurrentQueryCount();
     client.query("queryUnitTable", query);
     assertEquals(currentCount + 1, QueryUtil.getCurrentQueryCount());
+    UserContext.reset();
   }
 
   @SuppressWarnings("unchecked")


Mime
View raw message