Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Fix broken SLUB and SISIS Tests after Mockito update#639

Merged
raphaelm merged 2 commits intoopacapp:masterfrom
StefRe:fix/SLUB_test_mockito_update
Jun 25, 2021
Merged

Fix broken SLUB and SISIS Tests after Mockito update#639
raphaelm merged 2 commits intoopacapp:masterfrom
StefRe:fix/SLUB_test_mockito_update

Conversation

@StefRe
Copy link
Contributor

@StefRe StefRe commented May 25, 2021

The update of Mockito from 1.10.19 to 3.8.0 in 11833f3 broke a number of tests, see #638. I fixed the tests for the APIs I use (SLUB and SISIS).
The are still failing test in BiBer1992AccountTest, BibliothecaAccountTest and VuFindAccountTest but I'm not familiar with these APIs so I didn't try to fix the failing tests. These failures seem to be related to the jsoup update, see #584.

StefRe added 2 commits May 25, 2021 11:12
After update of Mockito from 1.10.19 to 3.8.0 (see 11833f3)
custom implementations of ArgumentMatcher did no longer compile. This was fixed following the
migration guide in https://www.javadoc.io/doc/org.mockito/mockito-core/3.8.0/org/mockito/ArgumentMatcher.html
After update of Mockito from 1.10.19 to 3.8.0 (see 11833f3)
testLoadPages did no longer compile as getArgumentAt was removed in Mockito 2.7.6 (see
mockito/mockito#945). Fixed by replacing with getArgument.
@raphaelm raphaelm closed this Jun 25, 2021
@raphaelm raphaelm reopened this Jun 25, 2021
@raphaelm raphaelm merged commit 307135d into opacapp:master Jun 25, 2021
@StefRe StefRe deleted the fix/SLUB_test_mockito_update branch June 26, 2021 10:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants