SiBorea
SiBorea
hi @tinder-dthomson I have created a JMockitMockUpToMockito recipe and want to contribute, what should I do? Just create a PR?
There will be a possibility that multiple new object statements after MockUp. Using spy may have to insert code every occurrence. And I suppose most likely those stubbed methods will...
Do we have byte code injection example in OpenRewrite? Haven't seen it before
I think PowerMockito is the same as [PowerMock](https://github.com/powermock/powermock/wiki/Mockito), quote `Basically, PowerMock provides a class called "PowerMockito" for creating mock/object/class and initiating verification, and expectations, everything else you can still use...
I consulted my colleague and he said MockUp is used when A calls B calls C, and only want to mock C, which spy might not suit this case. I...
> Also, this looks interesting - maybe can avoid reflection this way? [javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/AdditionalAnswers.html#delegatesTo(java.lang.Object)](https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/AdditionalAnswers.html#delegatesTo(java.lang.Object)) > > Can use with mockConstruction > > But won't be able to maintain state, maybe reflection...
> > Furthermore, Mockito's claim about mocking private/final method sound to me. > > [Wiki: Mockito And Private Methods (mockito/mockito)](https://github.com/mockito/mockito/wiki/Mockito-And-Private-Methods) > > Do you think we should support these? It's...
@shivanisky @timtebeek Do you think this PR is ready for review now?
Indeed. I prefer leave it to user determine. Just one more question, should we paste some comment to tell that why those private methods are ignored?
@timtebeek can you run the workflow again?