-
Notifications
You must be signed in to change notification settings - Fork 1
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
Upgrade of gradle from 5.4.1 to 5.5.0/5.5.1 results in test failures (inlining mockito with asm < 7.0) #101
Comments
|
gradle 5.5 introduced jacoco-0.8.4. See mockito/mockito#1717 |
While mockito-3.0.2 should have the fix relevant to restore inlining, the issue highlighted a code-smell that I'd like to fix first if possible. Some tests were mocking lombok @value classes that are final classes. They should not be mocked at all, sometimes they are just dummies and can be instantiated easily. Trying to get rid of the need for inlining where possible first. |
I have been able to remove the need for inlining in most cases. However mocking jooq records don't behave as I'd expect without inlining. I resorted to actually disabling some tests in following test classes for the time being:
I'll open a ticket to re-activate them once we have mockito-3.0.2 or later in the project (probably waiting for spring-boot-2.2 to pull this in. |
Bumping gradle from 5.4.1 to 5.5.1 results in failing tests, but only when run from gradle. Running the tests from IntellJ works fine.
I presume it has to do with
asm
. But need to investigate. Currently rolled back the gradle-wrapper to 5.4.1.The text was updated successfully, but these errors were encountered: