Details

    • Type: Sub-task
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9.0
    • Fix Version/s: None
    • Component/s: test
    • Labels:
      None
    • Target Version/s:

      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.008.patch
          442 kB
          Akira Ajisaka
        2. HADOOP-14178.007.patch
          442 kB
          Akira Ajisaka
        3. HADOOP-14178.006.patch
          442 kB
          Akira Ajisaka
        4. HADOOP-14178.005-wip6.patch
          442 kB
          Akira Ajisaka
        5. HADOOP-14178.005-wip5.patch
          440 kB
          Akira Ajisaka
        6. HADOOP-14178.005-wip4.patch
          440 kB
          Akira Ajisaka
        7. HADOOP-14178.005-wip3.patch
          426 kB
          Akira Ajisaka
        8. HADOOP-14178.005-wip2.patch
          388 kB
          Akira Ajisaka
        9. HADOOP-14178.005-wip.patch
          159 kB
          Akira Ajisaka
        10. HADOOP-14178.005.patch
          130 kB
          Akira Ajisaka
        11. HADOOP-14178.004.patch
          127 kB
          Akira Ajisaka
        12. HADOOP-14178.003.patch
          123 kB
          Akira Ajisaka
        13. HADOOP-14178.002.patch
          84 kB
          Akira Ajisaka
        14. HADOOP-14178.001.patch
          84 kB
          Akira Ajisaka

          Issue Links

            Activity

              People

              • Assignee:
                ajisakaa Akira Ajisaka
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                2 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated: