You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2016/09/14 21:14:20 UTC

[jira] [Closed] (SLING-6031) Teleporter.getService() should wait for required services

     [ https://issues.apache.org/jira/browse/SLING-6031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seifert closed SLING-6031.
---------------------------------

> Teleporter.getService() should wait for required services
> ---------------------------------------------------------
>
>                 Key: SLING-6031
>                 URL: https://issues.apache.org/jira/browse/SLING-6031
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>             Fix For: JUnit Tests Teleporter 1.0.8, JUnit Core 1.0.18
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)