Adding a unit test for blur-292
Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/f8f7aef6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/f8f7aef6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/f8f7aef6 Branch: refs/heads/blur-console-v2 Commit: f8f7aef6bc36e0f21d6935ca4fbafdf63ec79f03 Parents: 7dd4a5c Author: Aaron McCurry <[email protected]> Authored: Sun Nov 10 20:42:02 2013 -0500 Committer: Aaron McCurry <[email protected]> Committed: Sun Nov 10 20:42:02 2013 -0500 ---------------------------------------------------------------------- .../java/org/apache/blur/thrift/BlurClusterTest.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/f8f7aef6/blur-core/src/test/java/org/apache/blur/thrift/BlurClusterTest.java ---------------------------------------------------------------------- diff --git a/blur-core/src/test/java/org/apache/blur/thrift/BlurClusterTest.java b/blur-core/src/test/java/org/apache/blur/thrift/BlurClusterTest.java index eb96e78..bfa1250 100644 --- a/blur-core/src/test/java/org/apache/blur/thrift/BlurClusterTest.java +++ b/blur-core/src/test/java/org/apache/blur/thrift/BlurClusterTest.java @@ -21,6 +21,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.File; @@ -167,7 +168,7 @@ public class BlurClusterTest { Schema schema = client.schema("test"); assertFalse(schema.getFamilies().isEmpty()); } - + private void testQueryWithSelector() throws BlurException, TException { Iface client = getClient(); BlurQuery blurQueryRow = new BlurQuery(); @@ -177,16 +178,10 @@ public class BlurClusterTest { blurQueryRow.setUseCacheIfPresent(false); blurQueryRow.setCacheResult(false); blurQueryRow.setSelector(new Selector()); - + BlurResults resultsRow = client.query("test", blurQueryRow); -// assertRowResults(resultsRow); assertEquals(100, resultsRow.getTotalResults()); - - for (BlurResult blurResult : resultsRow.getResults()) { - System.out.println(blurResult); - } - - System.out.println(); + assertTrue(0 != resultsRow.getQuery().getStartTime()); } public void testBatchFetch() throws BlurException, TException {
