Skip to content

Fix Mock does not intercept package-private methods in OSGi correctly - #2385

Merged
leonard84 merged 1 commit into
spockframework:masterfrom
AndreasTu:Issue2384
Jul 21, 2026
Merged

Fix Mock does not intercept package-private methods in OSGi correctly#2385
leonard84 merged 1 commit into
spockframework:masterfrom
AndreasTu:Issue2384

Fix Mock does not intercept package-private methods in OSGi correctly

c5e092d
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jul 21, 2026 in 1s

82.28% (-0.01%) compared to d7afcdc, passed because coverage increased by 0% when compared to adjusted base (82.29%)

View this Pull Request on Codecov

82.28% (-0.01%) compared to d7afcdc, passed because coverage increased by 0% when compared to adjusted base (82.29%)

Details

Codecov Report

❌ Patch coverage is 73.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.28%. Comparing base (d7afcdc) to head (c5e092d).

Files with missing lines Patch % Lines
...ckframework/mock/runtime/ByteBuddyMockFactory.java 73.33% 2 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2385      +/-   ##
============================================
- Coverage     82.29%   82.28%   -0.01%     
- Complexity     4882     4887       +5     
============================================
  Files           474      474              
  Lines         15258    15267       +9     
  Branches       1961     1964       +3     
============================================
+ Hits          12557    12563       +6     
- Misses         2002     2004       +2     
- Partials        699      700       +1     
Files with missing lines Coverage Δ
...ckframework/mock/runtime/ByteBuddyMockFactory.java 88.17% <73.33%> (-3.50%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.