-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Mockito to v2.10 (che6 branch) #6719
Conversation
Does this PR include changes of tests from the master branch or not? |
@garagatyi I'm not sure to fully understand but |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/4132/ |
773e1e0
to
5e4ff21
Compare
Build # 4148 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/4148/ to view the results. |
5e4ff21
to
d79b9ed
Compare
Build # 4152 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/4152/ to view the results. |
Some changes are required like - anyString() --> nullable(String.class) for many tests as in fact we provide null values - add class for VerificationMode as there are more than one method now (can't use lambdas) - remove cast on ArgumentMatcher (now we can use lambdas as there is generics) - remove unecessary stubbing (mockito is now reporting un-needed stubs) Change-Id: I69c7ccc86bc85a4401d5e33671229ae0ce560dbb Signed-off-by: Florent BENOIT <[email protected]>
Change-Id: Ia325627b326b0b101d5ceb6e689e20d4c99055fb Signed-off-by: Florent BENOIT <[email protected]>
d79b9ed
to
acbdad1
Compare
Build # 4158 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/4158/ to view the results. |
note : before merging, the versions of mockito needs to be removed from root pom.xml and moved to che-dependencies repository.
What does this PR do?
Update Mockito to v2.10
Some changes are required like
anySomething()
-->nullable(Something.class)
for many tests as in fact we provide null values while any() expect a non-null valueVerificationMode
as there are more than one method now (can't use lambdas)ArgumentMatcher
(now we can use lambdas as there is generics)mockito-all
bymockito-core
(it is no longer provided in 2.x)What issues does this PR fix or reference?
#5326
Release Notes
N/A
Docs PR
N/A
Change-Id: Ifcddd24927a69cbbae1bd1dd97e35e900c94a5b3
Signed-off-by: Florent BENOIT [email protected]