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/27 11:57:00 UTC
[jira] [Comment Edited] (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:comment-tabpanel&focusedCommentId=16552869#comment-16552869 ]
Julian Reschke edited comment on OAK-7650 at 7/27/18 11:56 AM:
---------------------------------------------------------------
trunk: [r1836493|http://svn.apache.org/r1836493]
1.8: [r1836813|http://svn.apache.org/r1836813]
was (Author: reschke):
trunk: [r1836493|http://svn.apache.org/r1836493]
> 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
> Fix For: 1.10, 1.8.6, 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)