Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15398

StagingTestBase uses methods not available in Mockito 1.8.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Problem: hadoop trunk compilation is failing
      Root Cause:
      compilation error is coming from org.apache.hadoop.fs.s3a.commit.staging.StagingTestBase. Compilation error is "The method getArgumentAt(int, Class<UploadPartRequest>) is undefined for the type InvocationOnMock".

      StagingTestBase is using getArgumentAt(int, Class<UploadPartRequest>) method which is not available in mockito-all 1.8.5 version. getArgumentAt(int, Class<UploadPartRequest>) method is available only from version 2.0.0-beta

      Expectations:
      Either mockito-all version to be upgraded or test case to be written only with available functions in 1.8.5.

      Attachments

        1. HADOOP-15398.002.patch
          0.7 kB
          Mohammad Arshad
        2. HADOOP-15398.001.patch
          0.4 kB
          Mohammad Arshad

        Issue Links

          Activity

            People

              arshadmohammad Mohammad Arshad
              arshad.mohammad Mohammad Arshad
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: