Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9702

Change unittests that use "table" or "testtable" to use method names.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • test
    • None
    • Reviewed
    • Changes all tests to use the TestName JUnit Rule everywhere rather than hardcode table/region/store names.

    Description

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

      Attachments

        1. HBASE-9702.master.002.patch
          756 kB
          Jan Hentschel
        2. HBASE-9702.master.001.patch
          756 kB
          Jan Hentschel

        Issue Links

          Activity

            People

              janh Jan Hentschel
              jmhsieh Jonathan Hsieh
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: