HBASE-22382 Refactor tests in TestFromClientSide; ADDENDUM to fix tests

This commit is contained in:
stack 2019-07-26 13:27:34 -07:00
parent 3708198817
commit fa77c75848
1 changed files with 2 additions and 2 deletions

View File

@ -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());