From fa77c758483c1f10c3a60fd76076e9d49fe89133 Mon Sep 17 00:00:00 2001 From: stack Date: Fri, 26 Jul 2019 13:27:34 -0700 Subject: [PATCH] HBASE-22382 Refactor tests in TestFromClientSide; ADDENDUM to fix tests --- .../org/apache/hadoop/hbase/client/TestFromClientSide.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java index 38231037aac..36d31b402a2 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java @@ -1155,14 +1155,14 @@ public class TestFromClientSide { } } - @Test(expected = IOException.class) + @Test(expected = NullPointerException.class) public void testNullTableName() throws IOException { // Null table name (should NOT work) TEST_UTIL.createTable((TableName)null, FAMILY); fail("Creating a table with null name passed, should have failed"); } - @Test(expected = IOException.class) + @Test(expected = IllegalArgumentException.class) public void testNullFamilyName() throws IOException { final TableName tableName = TableName.valueOf(name.getMethodName());