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

Alexey Scherbakov updated IGNITE-14962:
---------------------------------------
    Description: 
https://ci.ignite.apache.org/viewLog.html?buildId=6067424&buildTypeId=ignite3_Test_RunUnitTests

org.mockito.exceptions.base.MockitoException:

No argument value was captured!
 You might have forgotten to use argument.capture() in verify()...
 ...or you used capture() in stubbing but stubbed method was not called.
 Be aware that it is recommended to use capture() only with verify()

Examples of correct argument capturing:
 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class);
 verify(mock).doSomething(argument.capture());
 assertEquals("John", argument.getValue().getName());

at 
org.apache.ignite.raft.jraft.storage.snapshot.local.LocalSnapshotCopierTest.testStartJoinFinishOK(LocalSnapshotCopierTest.java:199)
 ------- Stderr: -------
 2021-06-22 13:50:50:108 +0300 [main] INFO LogScheduledThreadPoolExecutor - 
ThreadPool is terminated: JRaft-Node-ScheduleThreadPool, 
org.apache.ignite.raft.jraft.util.MetricScheduledThreadPoolExecutor@44492c06[Shutting
 down, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 
0].
 [« Hide 
stacktrace|https://ci.ignite.apache.org/viewLog.html?buildId=6056091&buildTypeId=ignite3_Test_RunAllTests#]
 Copy to clipboard

  was:
org.mockito.exceptions.base.MockitoException: 

No argument value was captured!
You might have forgotten to use argument.capture() in verify()...
...or you used capture() in stubbing but stubbed method was not called.
Be aware that it is recommended to use capture() only with verify()

Examples of correct argument capturing:
    ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class);
    verify(mock).doSomething(argument.capture());
    assertEquals("John", argument.getValue().getName());

        at 
org.apache.ignite.raft.jraft.storage.snapshot.local.LocalSnapshotCopierTest.testStartJoinFinishOK(LocalSnapshotCopierTest.java:199)
------- Stderr: -------
2021-06-22 13:50:50:108 +0300 [main] INFO LogScheduledThreadPoolExecutor - 
ThreadPool is terminated: JRaft-Node-ScheduleThreadPool, 
org.apache.ignite.raft.jraft.util.MetricScheduledThreadPoolExecutor@44492c06[Shutting
 down, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 
0].
[« Hide 
stacktrace|https://ci.ignite.apache.org/viewLog.html?buildId=6056091&buildTypeId=ignite3_Test_RunAllTests#]
 Copy to clipboard


> testStartJoinFinishOK is flaky
> ------------------------------
>
>                 Key: IGNITE-14962
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14962
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Alexey Scherbakov
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-alpha3
>
>
> https://ci.ignite.apache.org/viewLog.html?buildId=6067424&buildTypeId=ignite3_Test_RunUnitTests
> org.mockito.exceptions.base.MockitoException:
> No argument value was captured!
>  You might have forgotten to use argument.capture() in verify()...
>  ...or you used capture() in stubbing but stubbed method was not called.
>  Be aware that it is recommended to use capture() only with verify()
> Examples of correct argument capturing:
>  ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class);
>  verify(mock).doSomething(argument.capture());
>  assertEquals("John", argument.getValue().getName());
> at 
> org.apache.ignite.raft.jraft.storage.snapshot.local.LocalSnapshotCopierTest.testStartJoinFinishOK(LocalSnapshotCopierTest.java:199)
>  ------- Stderr: -------
>  2021-06-22 13:50:50:108 +0300 [main] INFO LogScheduledThreadPoolExecutor - 
> ThreadPool is terminated: JRaft-Node-ScheduleThreadPool, 
> org.apache.ignite.raft.jraft.util.MetricScheduledThreadPoolExecutor@44492c06[Shutting
>  down, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 
> 0].
>  [« Hide 
> stacktrace|https://ci.ignite.apache.org/viewLog.html?buildId=6056091&buildTypeId=ignite3_Test_RunAllTests#]
>  Copy to clipboard



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to