i have an integrationtest where i autowire in mocks using a springcontext and easymock. The tests and everything works fine but i have a problem with intellij error highlighting.
my bean is configured like this:
<bean id="eventService" factory-method="createMock">
my autowiring in the class:
(the qualifier was there just to see if it would help, it didnt)
The eventservice java declaration above is highlighted red since idea believes that there's no bean defined as eventservice, since it doesn't understand that the factory method will create a mock of the class eventservice.
It's kind of annoying since i do it in a few places. At the very least, is it possible to turn the detection off for affected classes (found the global switch, but thats not optimal of course) ?