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 2019/07/03 07:24:00 UTC

[jira] [Updated] (OAK-7680) oak-commons: upgrade to project default mockito version

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

Julian Reschke updated OAK-7680:
--------------------------------
    Labels: candidate_oak_1_10  (was: )

> oak-commons: upgrade to project default mockito version
> -------------------------------------------------------
>
>                 Key: OAK-7680
>                 URL: https://issues.apache.org/jira/browse/OAK-7680
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: commons
>            Reporter: Julian Reschke
>            Assignee: Marcel Reutegger
>            Priority: Minor
>              Labels: candidate_oak_1_10
>             Fix For: 1.16.0
>
>         Attachments: OAK-7680.diff
>
>
> Unfortunately, mocking varargs seems to work different in current mockito versions. With the 2:* default from the parent pom, I'm getting the test failure below:
> {noformat}
> [ERROR] Tests run: 12, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 0.828 s <<< FAILURE! - in org.apache.jackrabbit.oak.commons.PerfLoggerTest
> [ERROR] logAtDebugMessageStartWithInfoLog(org.apache.jackrabbit.oak.commons.PerfLoggerTest)  Time elapsed: 0.045 s  <<< FAILURE!
> org.mockito.exceptions.verification.junit.ArgumentsAreDifferent:
> Argument(s) are different! Wanted:
> logger.debug(
>     <any string>,
>     <any java.lang.Object[]>
> );
> -> at org.apache.jackrabbit.oak.commons.PerfLoggerTest.verifyDebugInteractions(PerfLoggerTest.java:227)
> Actual invocation has different arguments:
> logger.debug(
>     "message [took 0ms]",
>     "argument"
> );
> -> at org.apache.jackrabbit.oak.commons.PerfLogger.end(PerfLogger.java:223)
>         at org.apache.jackrabbit.oak.commons.PerfLoggerTest.verifyDebugInteractions(PerfLoggerTest.java:227)
>         at org.apache.jackrabbit.oak.commons.PerfLoggerTest.logAtDebugMessageStartWithInfoLog(PerfLoggerTest.java:144)
> {noformat}



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