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 tests.
Date Tue, 03 Mar 2015 03:00:13 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 8b5b12e77 -> 4744b91ef


Fixing tests.


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

Branch: refs/heads/master
Commit: 4744b91efb5bb19feebf028c74f711c7259c0c02
Parents: 8b5b12e
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Mon Mar 2 22:00:09 2015 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Mon Mar 2 22:00:09 2015 -0500

----------------------------------------------------------------------
 .../apache/blur/server/cache/ThriftCacheKeyTest.java    | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/4744b91e/blur-core/src/test/java/org/apache/blur/server/cache/ThriftCacheKeyTest.java
----------------------------------------------------------------------
diff --git a/blur-core/src/test/java/org/apache/blur/server/cache/ThriftCacheKeyTest.java
b/blur-core/src/test/java/org/apache/blur/server/cache/ThriftCacheKeyTest.java
index 8c5da28..a3416f9 100644
--- a/blur-core/src/test/java/org/apache/blur/server/cache/ThriftCacheKeyTest.java
+++ b/blur-core/src/test/java/org/apache/blur/server/cache/ThriftCacheKeyTest.java
@@ -16,8 +16,7 @@
  */
 package org.apache.blur.server.cache;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.*;
 
 import java.util.HashMap;
 import java.util.Map;
@@ -100,9 +99,8 @@ public class ThriftCacheKeyTest {
         BlurQuery.class);
     ThriftCacheKey<BlurQuery> key2 = new ThriftCacheKey<BlurQuery>(user2, table,
new int[] { 0, 1 }, bq2,
         BlurQuery.class);
-
-    assertFalse(key1.equals(key2));
-    assertFalse(key1.hashCode() == key2.hashCode());
+    assertTrue(key1.equals(key2));
+    assertTrue(key1.hashCode() == key2.hashCode());
   }
 
   @Test
@@ -149,8 +147,8 @@ public class ThriftCacheKeyTest {
     ThriftCacheKey<BlurQuery> key2 = new ThriftCacheKey<BlurQuery>(user2, table,
new int[] { 0, 1 }, bq2,
         BlurQuery.class);
 
-    assertFalse(key1.equals(key2));
-    assertFalse(key1.hashCode() == key2.hashCode());
+    assertTrue(key1.equals(key2));
+    assertTrue(key1.hashCode() == key2.hashCode());
   }
 
   private Map<String, String> map(String... s) {


Mime
View raw message