HBASE-22382 Refactor tests in TestFromClientSide; ADDENDUM to fix tests
This commit is contained in:
parent
3708198817
commit
fa77c75848
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue