how to combine MockitoJUnitRunner and Junit Theories?

588 views
Skip to first unread message

jilen

unread,
Mar 19, 2012, 11:09:29 PM3/19/12
to moc...@googlegroups.com
I want to use Theories (experimental feature in junit 4)
But I have already @RunWith(MockitoJunitRunner.class) annotated with the test class,
and add @RunWith(Theories.class) cannot work together with @RunWith(MockitoJunitRunner.class)

Brice Dutheil

unread,
Mar 20, 2012, 5:07:45 AM3/20/12
to moc...@googlegroups.com
Hi,

Indeed, you will need to instantiate the mocks and spies yourself, or you can use MockitoAnnotations.initMocks().


Cheers,

-- Brice Dutheil

--
You received this message because you are subscribed to the Google Groups "mockito" group.
To post to this group, send email to moc...@googlegroups.com.
To unsubscribe from this group, send email to mockito+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mockito?hl=en.

Reply all
Reply to author
Forward
0 new messages