Fixing a unit test and creating an empty assembly file.
Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/e9e6e007 Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/e9e6e007 Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/e9e6e007 Branch: refs/heads/apache-blur-0.2 Commit: e9e6e007700fb1221d617b7a8478ee1502c1a5d6 Parents: 5599ce9 Author: Aaron McCurry <[email protected]> Authored: Mon May 19 08:09:34 2014 -0400 Committer: Aaron McCurry <[email protected]> Committed: Mon May 19 08:09:34 2014 -0400 ---------------------------------------------------------------------- contrib/blur-console/src/assemble/bin.xml | 22 ++++++++++++++++++++ .../apache/blur/console/util/QueryUtilTest.java | 7 ++----- 2 files changed, 24 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e9e6e007/contrib/blur-console/src/assemble/bin.xml ---------------------------------------------------------------------- diff --git a/contrib/blur-console/src/assemble/bin.xml b/contrib/blur-console/src/assemble/bin.xml new file mode 100644 index 0000000..aaedf12 --- /dev/null +++ b/contrib/blur-console/src/assemble/bin.xml @@ -0,0 +1,22 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> +</assembly> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e9e6e007/contrib/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java ---------------------------------------------------------------------- diff --git a/contrib/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java b/contrib/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java index 923aec8..5c2d564 100644 --- a/contrib/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java +++ b/contrib/blur-console/src/test/java/org/apache/blur/console/util/QueryUtilTest.java @@ -18,9 +18,7 @@ package org.apache.blur.console.util; import java.io.IOException; -import java.util.ArrayList; import java.util.Arrays; -import java.util.List; import java.util.UUID; import org.apache.blur.console.ConsoleTestBase; @@ -80,7 +78,7 @@ public class QueryUtilTest extends ConsoleTestBase { Record record = new Record("abcd", "fam0", Arrays.asList(new Column[]{ new Column("col0", "testvalue")})); RecordMutation recordMutation = new RecordMutation(RecordMutationType.REPLACE_ENTIRE_RECORD, record); - RowMutation rowMutation = new RowMutation("queryUnitTable", "12345", false, RowMutationType.REPLACE_ROW, Arrays.asList(new RecordMutation[]{ recordMutation }), true); + RowMutation rowMutation = new RowMutation("queryUnitTable", "12345", RowMutationType.REPLACE_ROW, Arrays.asList(new RecordMutation[]{ recordMutation })); client.mutate(rowMutation); } @@ -88,12 +86,11 @@ public class QueryUtilTest extends ConsoleTestBase { public void testGetQueryStatus() throws BlurException, IOException, TException { Iface client = BlurClient.getClient(cluster.getControllerConnectionStr()); QueryUtil.getQueryStatus(); - BlurQuery query = new BlurQuery( new Query("fam0.col0:*", true, ScoreType.SUPER, null, null), null, null, //new Selector(false, null, null, null, null, null, 0, 10, null), - false, 0, 10, 1, 2000, UUID.randomUUID().toString(), "testUser", false, System.currentTimeMillis()); + false, 0, 10, 1, 2000, UUID.randomUUID().toString(), "testUser", false, System.currentTimeMillis(),null,null); client.query("queryUnitTable", query); QueryUtil.getQueryStatus();
