Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-921

Convert TestDFSClientRetries::testNotYetReplicatedErrors to Mockito

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When TestDFSClientRetries::testNotYetReplicatedErrors was written, Mockito was not available and the NameNode was mocked by manually extending ClientProtocol and implementing all the methods, most with empty bodies. Now that we have Mockito, this code can be removed and replaced with an actual mock.

      1. HDFS-921.patch
        9 kB
        Jakob Homan
      2. HDFS-921-2.patch
        12 kB
        Jakob Homan

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jakob Homan
            Reporter:
            Jakob Homan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development