[OKC JUG] Sorry about today everyone

Brett L. Schuchert schuchert at yahoo.com
Tue Sep 8 13:08:25 PDT 2009


Better yet ....

Add this annotation to any test using Mockito (better than what I just  
mailed):
	@RunWith(MockitoJUnitRunner.class)

That is the "cool kids" way to do it.

Custom runners require Java 1.5 or later, of course.

Brett
On Sep 8, 2009, at 2:26 PM 9/8/09, Ryan Hoegg wrote:

> I apologize for missing today's meeting, I had an urgent issue on my  
> project and couldn't get away.  Please go through Brett's mockito  
> tutorial, but use:
>  @Mock private IAccountRepository accountRepository
>
> instead of
>
> accountRepository = mock(IAccountRepository.class)
>
> See you next month.
>
>
> http://schuchert.wikispaces.com/Mockito.LoginServiceExample
> _______________________________________________
> Jug mailing list
> Jug at lists.okcjug.org
> http://lists.okcjug.org/listinfo.cgi/jug-okcjug.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okcjug.org/pipermail/jug-okcjug.org/attachments/20090908/539e2edf/attachment.htm>


More information about the Jug mailing list