Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
[HIVEMALL-162] Test cases of L1/L2 normalize UDF expect HiveException
Browse files Browse the repository at this point in the history
  • Loading branch information
takuti committed Dec 19, 2017
1 parent feb349a commit e2666ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

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;

Expand All @@ -31,7 +32,7 @@
public class L1NormalizationUDFTest {

@Test
public void test() {
public void test() throws HiveException {
L1NormalizationUDF udf = new L1NormalizationUDF();

assertEquals(null, udf.evaluate(null));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
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));
Expand Down

0 comments on commit e2666ec

Please sign in to comment.