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

Teleporter.getService() should wait for required services

    XMLWordPrintableJSON

Details

    Description

      the JUnit TeleporterRule provides a getService method to get OSGi services for the test run. this may return null for services that are not yet started.

      as a workaround some integration tests implement their own "WaitFor" pattern
      https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/repoinit/it/src/test/java/org/apache/sling/repoinit/it/WaitFor.java

      it should be supported by the teleporter rule directly.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: