jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-7680) oak-commons: upgrade to project default mockito version
Date Tue, 16 Jul 2019 10:52:00 GMT

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

Julian Reschke updated OAK-7680:
--------------------------------
    Fix Version/s: 1.10.4

> 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, 1.10.4
>
>         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.14#76016)

Mime
View raw message