Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11792

osgi-mock, sling-mock: Allow mixture of plugins/callbacks

    XMLWordPrintableJSON

Details

    Description

      the OsgiContextBuilder and SlingContextBuilder provides methods to add an array of plugins or callbacks to customize the test execution. the current generic annotations allows only a list of plugins using the same subtype of the context:

      public final <T extends OsgiContextImpl> SlingContextBuilder plugin(@NotNull ContextPlugin<T> @NotNull ... plugin)
      

      it would be more flexible, to allow mixing plugins with any subtype in a single row:

      public final SlingContextBuilder plugin(@NotNull ContextPlugin<? extends OsgiContextImpl> @NotNull ... plugin)
      

      this applies to various methods of the *ContextBuilder and Plugins implementations.

      Attachments

        1. screenshot-1.png
          46 kB
          Henry Kuijpers

        Activity

          People

            sseifert Stefan Seifert
            sseifert Stefan Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m