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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -