Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13684

Remove Use of Deprecated Whitebox Test Class

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0, 2.10.0
    • Fix Version/s: None
    • Component/s: test
    • Labels:
      None

      Description

      Unit tests within the Hadoop suite are using the now deprecated class org.apache.hadoop.test.Whitebox.

      This class was ported from org.mockito.internal.util.reflection.Whitebox since the class was removed in Mockito 2.1. Using this class is a bad practice. Consider refactoring instead of using this.

      As stated, refactor the existing tests to remove calls to this class... then remove this class from the project.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              belugabehr David Mollitor
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: