[
https://issues.apache.org/jira/browse/SLING-6031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15465283#comment-15465283
]
ASF GitHub Bot commented on SLING-6031:
---------------------------------------
GitHub user stefanseifert opened a pull request:
https://github.com/apache/sling/pull/164
SLING-6031 Teleporter.getService() should wait for required services
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/stefanseifert/sling
feature/SLING-6031-teleporter-waitfor-service
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/sling/pull/164.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #164
----
commit 504d4d7684bc1aeb1e6c34b14e1967299d8b8af5
Author: sseifert <[email protected]>
Date: 2016-09-05T15:21:35Z
SLING-6031 Teleporter.getService() should wait for required services
commit 3e386a9ee26f88965514aa65bb98f5b2a1eddf1d
Author: sseifert <[email protected]>
Date: 2016-09-05T15:22:13Z
SLING-6031 switch to latest teleporter version not requiring a WaitFor class
commit 6f8d3451568b8eea8c8bb8f2bc236aa194680c2f
Author: sseifert <[email protected]>
Date: 2016-09-05T15:43:18Z
SLING-6031 switch to latest teleporter version not requiring a WaitFor class
commit a9bf7309da1edd3b63ce0c040fd755c48c2b3e77
Author: sseifert <[email protected]>
Date: 2016-09-05T15:47:11Z
SLING-6031 Teleporter.getService() should wait for required services
----
> 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)