XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.2.0, 2.3.0, 2.1.6
    • Component/s: java, test
    • Labels:

      Description

      When built on Java 8 and unit tests are run on Java 11, TestCellUtil fails. A sample stacktrace:

       Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.096 s <<< FAILURE! - in org.apache.hadoop.hbase.TestCellUtil
      testGetType(org.apache.hadoop.hbase.TestCellUtil) Time elapsed: 0.544 s <<< ERROR!
      org.mockito.exceptions.base.MockitoException:
      
      Cannot call abstract real method on java object!
      Calling real methods is only possible when mocking non abstract method.
      //correct example:
      when(mockOfConcreteClass.nonAbstractMethod()).thenCallRealMethod();
      at org.apache.hadoop.hbase.TestCellUtil.testGetType(TestCellUtil.java:543)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sakthi Sakthi
                Reporter:
                sakthi Sakthi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: