-
Notifications
You must be signed in to change notification settings - Fork 466
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
Separate code specific to cglib/ByteBuddy #903
Conversation
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 Report
@@ 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
Continue to review full report at Codecov.
|
3a7b267
to
9296e9c
Compare
import static net.bytebuddy.matcher.ElementMatchers.any; | ||
import static net.bytebuddy.matcher.ElementMatchers.none; | ||
|
||
class ByteBuddyMockFactory { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.
This refactoring commit extracts three top-level classes from
ProxyBasedMockFactory
: one for generating dynamic proxies forinterfaces, one for cglib-specific code, and one for ByteBuddy-specific
code.