Error in mockito.xsd
Using mockito:mock exactly as described in the Wiki gives me this error in Eclipse Indigo:
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.mockito.org/spring/mockito.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mockito:mock'.
Putting mockito.xsd right next to my applicationContext and referencing to it resolves this issue but gives me the next in mockito.xsd for spring beans:
src-resolve: Cannot resolve the name 'beans:identifiedType' to a(n) 'type definition' component.
Changing <xsd:import namespace="http://www.springframework.org/schema/beans" /> to
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans.xsd" />
resolves that issue.