java - Mockito - verifying a stub -
java - Mockito - verifying a stub -
i have stub used across different test cases , need verify methods not called in of these test cases.
the problem i'm having mocks through mockito.mock()
calling methods have no effect.
so, can somehow mock stub method calls executed should , @ same time logged can verified?
i think looking spies. see here: http://mockito.googlecode.com/svn/branches/1.7/javadoc/org/mockito/mockito.html (#13 in list).
java unit-testing mockito
Comments
Post a Comment