Closed ColinHebert closed 10 years ago
Yes, it now cascades. The way to disable cascading is explained in the release notes for version 1.12 (http://jmockit.github.io/changes.html), and also in the API documentation for and @Mocked (http://jmockit.github.io/api1x/mockit/Mocked.html) and @Cascading (http://jmockit.github.io/api1x/mockit/Cascading.html).
Wut? @rliesenfeld It explains how to disable it for @Mocked
, not for @Injectable
(which is the reason why I opened this issue).
Well, the API documentation for @Injectable says that it creates a mocked (@Mocked) instance, so everything that applies to @Mocked applies to @Injectable, except of course for the aspects that are specific to @Injectable. I guess it can be made more clear in the API doc for @Injectable, but I don't want to repeat everything there, obviously.
But there is no cascading option for @Injectable
AFAICT.
Indeed, there isn't. I will review the API documentation for @Injectable to make it more complete and clear.
So without the cascading option for @Injectable
how do I disable cascading for @Injectable
?
It seems that since 1.12
@Injectable
cascades but doesn't provide a way to stop the cascading.