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

upgrade to mockito version compatible with java 11

    XMLWordPrintableJSON

    Details

      Description

      Older versions of 2.* fail like:

      [INFO] Running org.apache.jackrabbit.oak.security.authentication.ldap.impl.PoolableUnboundConnectionFactoryTest
      [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.539 s <<< FAILURE! - in org.apache.jackrabbit.oak.security.authentication.ldap.impl.PoolableUnboundConnectionFactoryTest
      [ERROR] testSetValidator(org.apache.jackrabbit.oak.security.authentication.ldap.impl.PoolableUnboundConnectionFactoryTest)  Time elapsed: 0.539 s  <<< ERROR!
      org.mockito.exceptions.base.MockitoException:
      
      Mockito cannot mock this class: interface org.apache.directory.ldap.client.api.LdapConnectionValidator.
      
      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               : 11
      JVM vendor name    : Oracle Corporation
      JVM vendor version : 11-ea+22
      JVM name           : Java HotSpot(TM) 64-Bit Server VM
      JVM version        : 11-ea+22
      JVM info           : mixed mode
      OS name            : Windows 10
      OS version         : 10.0
      

      1.* versions do not seem to be affected.

        Attachments

          Activity

            People

            • Assignee:
              reschke Julian Reschke
              Reporter:
              reschke Julian Reschke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: