[
https://issues.apache.org/jira/browse/HBASE-9702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15864305#comment-15864305
]
Jan Hentschel commented on HBASE-9702:
--------------------------------------
I couldn't script it and instead did a search for all occurrences of
TableName.valueOf in the tests, because some of the tests (f.e. the one's with
parameters) actually break if the method names are used or the name of the
table in a test was defined in another method (f.e. in a private helper).
> Change unittests that use "table" or "testtable" to use method names.
> ---------------------------------------------------------------------
>
> Key: HBASE-9702
> URL: https://issues.apache.org/jira/browse/HBASE-9702
> Project: HBase
> Issue Type: Bug
> Reporter: Jonathan Hsieh
> Assignee: Jan Hentschel
> Attachments: HBASE-9702.master.001.patch, HBASE-9702.master.002.patch
>
>
> While working on HBASE-9686, many tests left files that indicated the method
> they had come from but several drop data in "table" or "testtable" tables.
> Naming them this way makes it hard to track which tests these came from. We
> should make all test use
> @Rule TestName name = new TestName();
> ...
> TableName t = TableName.valueOf(name.getMethodName());
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)