not using partial mocking? do they also mean in web-app?
Posted
by 01
on Stack Overflow
See other posts from Stack Overflow
or by 01
Published on 2010-03-09T15:04:23Z
Indexed on
2010/03/20
3:11 UTC
Read the original article
Hit count: 688
Im learning Mockito and in chapter 16 they say you should not use partial mocking in new system.
I disagree, for example in one of my actions i use partial mocking for static framework methods, sql calls, etc. I extracted the stuff into methods and then mock it in tests. Most of those methods are specific to this action and wont be call from other actions, so it not worth to extract special components. I agree that you shouldn't using partial mocking in frameworks, but not in hard to mock actions. What are minuses of using partial mocking in web-app?
© Stack Overflow or respective owner