Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7366

update to mockito version compatible with jdk 10

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.9.0, 1.10.0, 1.8.6
    • None
    • None

    Description

      Mockito needs to be updated to 2.12.0 as per [0].

      [INFO] Running org.apache.jackrabbit.oak.plugins.tree.TreeLocationTest
      [ERROR] Tests run: 9, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: 0.811 s <<< FAILURE! - in org.apache.jackrabbit.oak.plugins.tree.TreeLocationTest
      [ERROR] testNullLocation(org.apache.jackrabbit.oak.plugins.tree.TreeLocationTest)  Time elapsed: 0.491 s  <<< ERROR!
      org.mockito.exceptions.base.MockitoException: 
      
      Mockito cannot mock this class: interface org.apache.jackrabbit.oak.api.Tree.
      
      Mockito can only mock non-private & non-final classes.
      If you're not sure why you're getting this error, please report to the mailing list.
      
      
      Java               : 10
      JVM vendor name    : "Oracle Corporation"
      JVM vendor version : 10+46
      JVM name           : Java HotSpot(TM) 64-Bit Server VM
      JVM version        : 10+46
      JVM info           : mixed mode
      OS name            : Mac OS X
      OS version         : 10.13.3
      
      
      Underlying exception : java.lang.UnsupportedOperationException: Cannot define class using reflection
      Caused by: java.lang.UnsupportedOperationException: Cannot define class using reflection
      Caused by: java.lang.IllegalArgumentException: Unknown Java version: 10
      

      [0] https://github.com/mockito/mockito/issues/1243

      Attachments

        Issue Links

          Activity

            People

              stillalex Alex Deparvu
              stillalex Alex Deparvu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: