Description
Three classes in V3AnnotationPortletArtifactValidityTests inject a dependent-scoped String (the value for which is the portlet name, which is associated with the portlet request):
@Inject @PortletName private String portletName;
The fix would be to follow the pattern already found elsewhere in the tests by injecting the @PortletRequestScoped PortletRequestScopedArtifacts instance and calling the getPortletName() method:
@Inject private PortletRequestScopedArtifacts portletRequestScopedArtifacts; ... String portletName = portletRequestScopedArtifacts.getPortletName();