Package org.apache.hadoop.hbase
Class TableNameTestRule
java.lang.Object
org.junit.rules.TestWatcher
org.apache.hadoop.hbase.TableNameTestRule
- All Implemented Interfaces:
org.junit.rules.TestRule
Deprecated.
Returns a
TableName based on currently running test method name. Supports tests built on
the Parameterized runner.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcleanUpTestName(String methodName) Deprecated.Helper to handle parameterized method names.org.apache.hadoop.hbase.TableNameDeprecated.protected voidstarting(org.junit.runner.Description description) Deprecated.Methods inherited from class org.junit.rules.TestWatcher
apply, failed, finished, skipped, skipped, succeeded
-
Field Details
-
tableName
Deprecated.
-
-
Constructor Details
-
TableNameTestRule
public TableNameTestRule()Deprecated.
-
-
Method Details
-
starting
Deprecated.- Overrides:
startingin classorg.junit.rules.TestWatcher
-
cleanUpTestName
Deprecated.Helper to handle parameterized method names. Unlike regular test methods, parameterized method names look like 'foo[x]'. This is problematic for tests that use this name for HBase tables. This helper strips out the parameter suffixes.- Returns:
- current test method name with out parameterized suffixes.
-
getTableName
Deprecated.
-
TableNameTestExtensioninstead, once we finish the migration of JUnit5, which means we do not needTableNameTestRuleany more, we can remove these dependencies, see HBASE-23671 for more details.