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

Convert TestDFSClientRetries::testNotYetReplicatedErrors to Mockito

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: