Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-243

Collections (List, Map) of components dependencies are automatically mocked

    XMLWordPrintable

Details

    • N/A
    • N/A

    Description

      I'm not sure this should be a bug but in the current state it's not possible to provide mocks to be injected in collections of components.

      @Inject
      List<ComponentRole> dependencies;
      

      Currently the role of this dependency is considered as a whole, in this case "List<ComponentRole>" instead of a list of implementations.

      Attachments

        Activity

          People

            jvdrean Jean-Vincent Drean
            jvdrean Jean-Vincent Drean
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: