Skip to content
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

Separate code specific to cglib/ByteBuddy #903

Conversation

marcphilipp
Copy link
Member

This refactoring commit extracts three top-level classes from
ProxyBasedMockFactory: one for generating dynamic proxies for
interfaces, one for cglib-specific code, and one for ByteBuddy-specific
code.

@marcphilipp marcphilipp self-assigned this Sep 11, 2018
This refactoring commit extracts three top-level classes from
`ProxyBasedMockFactory`: one for generating dynamic proxies for
interfaces, one for cglib-specific code, and one for ByteBuddy-specific
code.
@codecov
Copy link

codecov bot commented Sep 11, 2018

Codecov Report

Merging #903 into master will decrease coverage by 0.02%.
The diff coverage is 81.63%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master    #903      +/-   ##
===========================================
- Coverage     75.03%     75%   -0.03%     
- Complexity     3429    3439      +10     
===========================================
  Files           368     371       +3     
  Lines         10579   10580       +1     
  Branches       1342    1337       -5     
===========================================
- Hits           7938    7936       -2     
- Misses         2171    2174       +3     
  Partials        470     470
Impacted Files Coverage Δ Complexity Δ
...kframework/mock/runtime/ProxyBasedMockFactory.java 100% <100%> (+14.56%) 7 <0> (-1) ⬇️
...ramework/mock/runtime/DynamicProxyMockFactory.java 66.66% <66.66%> (ø) 1 <1> (?)
.../spockframework/mock/runtime/CglibMockFactory.java 80.64% <80.64%> (ø) 1 <1> (?)
...ckframework/mock/runtime/ByteBuddyMockFactory.java 82.69% <82.69%> (ø) 9 <9> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab43f8c...34d8d8f. Read the comment docs.

@marcphilipp marcphilipp force-pushed the proxy-based-mock-factory-refactoring branch from 3a7b267 to 9296e9c Compare September 11, 2018 14:07
import static net.bytebuddy.matcher.ElementMatchers.any;
import static net.bytebuddy.matcher.ElementMatchers.none;

class ByteBuddyMockFactory {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for keeping it package private

Copy link
Member

@szpak szpak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@leonard84 leonard84 merged commit b58e0f1 into spockframework:master Sep 11, 2018
@marcphilipp marcphilipp deleted the proxy-based-mock-factory-refactoring branch September 11, 2018 17:22
MartyIX pushed a commit to MartyIX/spock that referenced this pull request Oct 14, 2018
This refactoring commit extracts three top-level classes from
`ProxyBasedMockFactory`: one for generating dynamic proxies for
interfaces, one for cglib-specific code, and one for ByteBuddy-specific
code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants