Details
-
Bug
-
Resolution: Fixed
-
Major
-
14.1-rc-1
-
None
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
Create an @ComponentTest with an @Inject with a generic component type. For example with @ReferenceComponentList and
@Inject private EntityReferenceSerializer<String> serializer;
Expected result:
The component is injected.
Actual result:
An error org.xwiki.component.manager.ComponentLookupException: Can't find descriptor for the component with type [interface org.xwiki.model.reference.EntityReferenceSerializer] and hint [null] is displayed. Note that the <String> part is missing.
Attachments
Issue Links
- is caused by
-
XCOMMONS-2374 Add ability to @Inject in @ComponentTest tests
- Closed