You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2018/07/23 13:38:00 UTC

[jira] [Resolved] (OAK-7650) upgrade to mockito version compatible with java 11

     [ https://issues.apache.org/jira/browse/OAK-7650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Reschke resolved OAK-7650.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.7

> upgrade to mockito version compatible with java 11
> --------------------------------------------------
>
>                 Key: OAK-7650
>                 URL: https://issues.apache.org/jira/browse/OAK-7650
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: auth-ldap, documentmk, security-spi
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Minor
>              Labels: candidate_oak_1_8
>             Fix For: 1.10, 1.9.7
>
>
> Older versions of 2.* fail like:
> {noformat}
> [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
> {noformat}
> 1.* versions do not seem to be affected.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)