Thanks Kris,
A carry-over question related to A Rule. Now that I don't extend
MockitoTestCase, how do I 'prepare' the classes that I want to mock? I
know that I have to call 'Mock' on each, e.g.
mockShoppingSiteCommunicator = mock(ShoppingSiteCommunicator);
but how do I 'prepare' that class first. There is no prepareClasses
call on the mokito variable from the Rule.
Thanks in advance.
JohnG
On Oct 26, 9:09 am, Kris <
kris.karczmarc...@gmail.com> wrote:
> Hi John,
>
> You apparently miss the hard reference to
> org.mockito.integrations.flexunit4.MockitoClassRunner class, you have only
> the string reference. So either add it somewhere to make sure it got linked
> with your application or preferably use MockitoRule instead of runner:
>
> public class OrderSubmitControllerTester extends SwizTestCase {
>
> [Rule]
> public mockito:MockitoRule = new MockitoRule();
>
> ...
>
> Hope this helps,
> Kris
>
> >
mockito-flex...@googlegroups.com<
mockito-flex%2Bunsu...@googlegroups.com>
> > .