Repository: incubator-hivemall Updated Branches: refs/heads/master feb349aae -> 3ceaeef82
[HIVEMALL-162] Test cases oof L1/L2 normalize UDF expect HiveException Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/3ceaeef8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/3ceaeef8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/3ceaeef8 Branch: refs/heads/master Commit: 3ceaeef8268433b1442ae06e9ec7a3ff9d23e2be Parents: feb349a Author: Takuya Kitazawa <[email protected]> Authored: Tue Dec 19 10:22:06 2017 +0900 Committer: Takuya Kitazawa <[email protected]> Committed: Tue Dec 19 10:22:06 2017 +0900 ---------------------------------------------------------------------- .../test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java | 3 ++- .../test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/3ceaeef8/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java b/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java index 2cd8250..7d997f7 100644 --- a/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java +++ b/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java @@ -20,6 +20,7 @@ package hivemall.ftvec.scaling; import hivemall.utils.hadoop.WritableUtils; import hivemall.utils.math.MathUtils; +import org.apache.hadoop.hive.ql.metadata.HiveException; import org.apache.hadoop.io.Text; import org.junit.Test; @@ -31,7 +32,7 @@ import static org.junit.Assert.assertEquals; public class L1NormalizationUDFTest { @Test - public void test() { + public void test() throws HiveException { L1NormalizationUDF udf = new L1NormalizationUDF(); assertEquals(null, udf.evaluate(null)); http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/3ceaeef8/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java b/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java index bd80577..30e2aba 100644 --- a/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java +++ b/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java @@ -25,13 +25,14 @@ import hivemall.utils.math.MathUtils; import java.util.Collections; import java.util.List; +import org.apache.hadoop.hive.ql.metadata.HiveException; import org.apache.hadoop.io.Text; import org.junit.Test; public class L2NormalizationUDFTest { @Test - public void test() { + public void test() throws HiveException { L2NormalizationUDF udf = new L2NormalizationUDF(); assertEquals(null, udf.evaluate(null));
