--
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.
mock.yourMethod() doesn't look like a reflected method invocation to
me. Don't you think?
m.
On Tue, Jun 1, 2010 at 11:12 AM, Max <maxo...@gmail.com> wrote:
--
Maciej Biłas
doReturn("foo").when(rule).createFileTemplate();
or
willReturn("foo").given(rule).createFileTemplate();
Because otherwise the real method will be called and may cause your
test to blow up.
Thanks,
James
Thanks,
James
But Max, why can't you just put your test on the same package? Doing
that, you will have the ability to test your protected method, and
your code will stay better organized, for you or others to find the
test in a future.
When I mean the same package, i mean in a different source folder! =D
Thanks,
James
Thanks,
James