Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 3.3.0
    • test
    • None
    • Hide
      Hadoop migrated from mockito1 (mockito-all) to mockito2 (mockito-core).
      Downstream applications that depends on Hadoop's test utilities will have to migrate to mockito2 as well to avoid test failures.
      Show
      Hadoop migrated from mockito1 (mockito-all) to mockito2 (mockito-core). Downstream applications that depends on Hadoop's test utilities will have to migrate to mockito2 as well to avoid test failures.

    Description

      I don't know when Hadoop picked up Mockito, but it has been frozen at 1.8.5 since the switch to maven in 2011.

      Mockito is now at version 2.1, with lots of Java 8 support. That' s not just defining actions as closures, but in supporting Optional types, mocking methods in interfaces, etc.

      It's only used for testing, and, provided there aren't regressions, cost of upgrade is low. The good news: test tools usually come with good test coverage. The bad: mockito does go deep into java bytecodes.

      Attachments

        1. HADOOP-14178.001.patch
          84 kB
          Akira Ajisaka
        2. HADOOP-14178.002.patch
          84 kB
          Akira Ajisaka
        3. HADOOP-14178.003.patch
          123 kB
          Akira Ajisaka
        4. HADOOP-14178.004.patch
          127 kB
          Akira Ajisaka
        5. HADOOP-14178.005.patch
          130 kB
          Akira Ajisaka
        6. HADOOP-14178.005-wip.patch
          159 kB
          Akira Ajisaka
        7. HADOOP-14178.005-wip2.patch
          388 kB
          Akira Ajisaka
        8. HADOOP-14178.005-wip3.patch
          426 kB
          Akira Ajisaka
        9. HADOOP-14178.005-wip4.patch
          440 kB
          Akira Ajisaka
        10. HADOOP-14178.005-wip5.patch
          440 kB
          Akira Ajisaka
        11. HADOOP-14178.005-wip6.patch
          442 kB
          Akira Ajisaka
        12. HADOOP-14178.006.patch
          442 kB
          Akira Ajisaka
        13. HADOOP-14178.007.patch
          442 kB
          Akira Ajisaka
        14. HADOOP-14178.008.patch
          442 kB
          Akira Ajisaka
        15. HADOOP-14178.009.patch
          443 kB
          Akira Ajisaka
        16. HADOOP-14178.010.patch
          449 kB
          Akira Ajisaka
        17. HADOOP-14178.011.patch
          454 kB
          Akira Ajisaka
        18. HADOOP-14178.012.patch
          478 kB
          Akira Ajisaka
        19. HADOOP-14178.013.patch
          421 kB
          Akira Ajisaka
        20. HADOOP-14178.014.patch
          444 kB
          Akira Ajisaka
        21. HADOOP-14178.015.patch
          450 kB
          Akira Ajisaka
        22. HADOOP-14178.016.patch
          456 kB
          Akira Ajisaka
        23. HADOOP-14178.017.patch
          454 kB
          Akira Ajisaka
        24. HADOOP-14178.018.patch
          456 kB
          Akira Ajisaka
        25. HADOOP-14178.019.patch
          460 kB
          Akira Ajisaka
        26. HADOOP-14178.020.patch
          455 kB
          Akira Ajisaka
        27. HADOOP-14178.021.patch
          479 kB
          Akira Ajisaka
        28. HADOOP-14178.022.patch
          480 kB
          Akira Ajisaka
        29. HADOOP-14178.023.patch
          480 kB
          Akira Ajisaka
        30. HADOOP-14178.024.patch
          480 kB
          Akira Ajisaka
        31. HADOOP-14178.025.patch
          479 kB
          Akira Ajisaka
        32. HADOOP-14178.026.patch
          479 kB
          Akira Ajisaka
        33. HADOOP-14178.027.patch
          489 kB
          Akira Ajisaka
        34. HADOOP-14178.028.patch
          494 kB
          Akira Ajisaka
        35. HADOOP-14178.029.patch
          494 kB
          Akira Ajisaka
        36. HADOOP-14178.030.patch
          489 kB
          Masatake Iwasaki
        37. HADOOP-14178.031.patch
          493 kB
          Akira Ajisaka
        38. HADOOP-14178.032.patch
          493 kB
          Akira Ajisaka

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              stevel@apache.org Steve Loughran
              Votes:
              2 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: