Skip to content

Commit a76855f

Browse files
saintstackApache9
authored andcommitted
HBASE-22382 Refactor tests in TestFromClientSide; ADDENDUM to fix tests
1 parent b7aeca3 commit a76855f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,14 +1162,14 @@ public void testSingleRowMultipleFamily() throws Exception {
11621162

11631163
}
11641164

1165-
@Test(expected = IOException.class)
1165+
@Test(expected = NullPointerException.class)
11661166
public void testNullTableName() throws IOException {
11671167
// Null table name (should NOT work)
11681168
TEST_UTIL.createTable((TableName)null, FAMILY);
11691169
fail("Creating a table with null name passed, should have failed");
11701170
}
11711171

1172-
@Test(expected = IOException.class)
1172+
@Test(expected = IllegalArgumentException.class)
11731173
public void testNullFamilyName() throws IOException {
11741174
final TableName tableName = TableName.valueOf(name.getMethodName());
11751175

0 commit comments

Comments
 (0)