I sometimes find when testing facades or web components that I have a lot of mocks so I create the @Mock annotation and the helper to make my life even easier.
I'm ambiguous about this one. I understand why it can be useful. However, it means putting testing annotations in the application code and package EasyMock with the application deployed in production.
It just doesn't feel right.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Helper to autowire mocks
Mock annotation
Logged In: YES
user_id=893525
Originator: YES
File Added: Mock.java
I'm ambiguous about this one. I understand why it can be useful. However, it means putting testing annotations in the application code and package EasyMock with the application deployed in production.
It just doesn't feel right.