Repository navigation
Replace Cglib with Bytebuddy to support Java 9+ - #300
Conversation
…'t the goal of that test
… need to filtering in specific cases
… the link with EasyMockSupport
|
Close #274 |
|
Hi @henri-tremblay , could you clarify the following mocking behavior? I'm trying out using I have a test where a mocked object seems to delegate to the "real" implementation with 4.2 ( The mock is created with Unfortunately I'm not too into The "real" method that is being called is package private, maybe this makes a difference somehow? Best regards, |
|
It should behave the exact same way as before. A class extending the original class is created. And that's your mock. Every call to it will be intercepted and the original code isn't called. Everything else is a bug that should be fixed. |
Thanks, I'll try to write a reproducer then. |
I can reproduce this with Eclipse plug-ins, otherwise I can't. When I run the test With I couldn't debug Considering that the bug is fixed in 5.x, I assume there is no need to open an issue? I mainly wrote my initial comment to confirm the expected behavior (that the mock should not be running production code). |
|
The error you see is one of the reason I had to switch to ByteBuddy. To remove the reflective access issues. |
Alright, great to hear. Thanks! |
No description provided.