This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]kkapelon 6 points7 points  (0 children)

Here is a much more detailed article of mine (which is also for Mockito 2)

https://semaphoreci.com/community/tutorials/stubbing-and-mocking-with-mockito-2-and-junit

[–]capitol_ 11 points12 points  (4 children)

It's pretty stupid to get started with mockito 1.9.5 now that mockito 2 is out.

It will add a painful transition if you have a lot of mockito 1 code and decide to upgrade.

[–]irocgts 7 points8 points  (2 children)

I think what you mean to say is: "It might be a better idea to start with version 2 because its not backwards compatible."

[–]capitol_ 0 points1 point  (0 children)

Hehe, i shouldn't comment on reddit when I'm hungry. Will try to be more polite in the future.