PowerMockito.whenNew(BlahBlah.class)
.withArguments(anyObject())
.thenReturn(preparedBlahBlahObject);
return process(ctx,new BlahBlah(pRequest));
new BlahBlah(new RequestType())
PowerMockito.whenNew(BlahBlah.class)
.withArguments(any(SomeClass.class))
.thenReturn(blahBlahInstance);
PowerMockito.whenNew(CsiUnifiedCreditVerificationAnswersProcessor.class)
.withAnyArguments()
.thenReturn(csiUnifiedCreditVerificationAnswersProcessor);
--
You received this message because you are subscribed to the Google Groups "PowerMock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to powermock+...@googlegroups.com.
To post to this group, send email to powe...@googlegroups.com.
Visit this group at https://groups.google.com/group/powermock.
For more options, visit https://groups.google.com/d/optout.
Hi,
Thank you for this investigation.
In PowerMock 1.6.6 has been implemented "Only mock specific calls to new”
Within this task was added correct handling mockito args matchers like `eq`. It should affect using `any*` matchers, but look likes is affected.
If it possible, could you create a small example to reproduce the issue and create an issue on GitHub?
Best regrads,Arthur Zagretdinov
Hi,
Thank you for this investigation.
In PowerMock 1.6.6 has been implemented "Only mock specific calls to new”
Within this task was added correct handling mockito args matchers like `eq`. It should affect using `any*` matchers, but look likes is affected.
If it possible, could you create a small example to reproduce the issue and create an issue on GitHub?
On Monday, January 23, 2017 at 10:49:00 PM UTC-8, Артур Загретдинов wrote:Hi,
Thank you for this investigation.
In PowerMock 1.6.6 has been implemented "Only mock specific calls to new”
Within this task was added correct handling mockito args matchers like `eq`. It should affect using `any*` matchers, but look likes is affected.
If it possible, could you create a small example to reproduce the issue and create an issue on GitHub?
My initial attempts to build an isolated test case have not succeeded. I'm simply trying to model similar structures from the real code. Do you have some suggestions for particular aspects of the structure that I should be trying to replicate in order to repeat this problem?