[ 
https://issues.apache.org/jira/browse/SLING-5294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15012048#comment-15012048
 ] 

Bertrand Delacretaz edited comment on SLING-5294 at 11/19/15 2:45 AM:
----------------------------------------------------------------------

I have implemented a slightly different variant, based on your ideas but using 
the {{TeleporterRule.withResources(...)}} method suggested above. 

That's http://svn.apache.org/r1715072 (edit: and http://svn.apache.org/r1715088 
), can you check if that works for your use cases?

There are two example tests at [1], {{TeleportedResourcesFolderTest}} and 
{{TeleportedResourcesSingleTest}}.

[1] 
https://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/teleporter


was (Author: bdelacretaz):
I have implemented a slightly different variant, based on your ideas but using 
the {{TeleporterRule.withResources(...)}} method suggested above. 

That's http://svn.apache.org/r1715072 - can you check if that works for your 
use cases?

There are two example tests at [1], {{TeleportedResourcesFolderTest}} and 
{{TeleportedResourcesSingleTest}}.

[1] 
https://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/teleporter

> Make test resources available to teleported tests
> -------------------------------------------------
>
>                 Key: SLING-5294
>                 URL: https://issues.apache.org/jira/browse/SLING-5294
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: JUnit Tests Teleporter 1.0.2
>            Reporter: Thierry Ygé
>             Fix For: JUnit Tests Teleporter 1.0.4, JUnit Core 1.0.14
>
>         Attachments: ClientSideTeleporter.java_patch, 
> ClientSideTeleporter.java_patch_v2
>
>
> Currently you can add classes to the bundle, but not resources.
> It would be nice to simply add the following code (see attached diff).



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

Reply via email to