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

Petr Shypila edited comment on SLING-1437 at 3/4/15 8:12 AM:
-------------------------------------------------------------

Bertrand,

Thank you for your reply. Of course I'm ready to start before GSoC selection 
starts to show you some examples of my work. I've just forked Sling on Github 
and have a few questions:
1. Are there some components on which I should concentrate  and investigate 
more than on other?
2. Few weeks ago I found a problem with _Adaptable.adaptTo()_ method in a test 
scope. For example:
{noformat}
ResourceResolver r = MockSling.newResourceResolver();
com.adobe.granite.asset.AssetManager a = r.adaptTo(AssetManager.class); 
//Returns null
{noformat}
And I have same problem with wcm.io library:
{noformat}
io.wcm.testing.mock.aem.junit.AemContext context = new AemContext();
ResourceResolver r = context.resourceResolver();
com.adobe.granite.asset.AssetManager a = r.adaptTo(AssetManager.class); //Also 
returns null
{noformat}
And I have the pretty same problems with adapting of resources in a test scope. 
I didn't investigate why yet, but probably I also can do some stuff here?

Best,
Petr


was (Author: petr.shypila):
Bertrand,

Thank you for your reply. Of course I'm ready to start before GSoC selection 
starts to show you some examples of my work. I've just forked Sling on Github 
and have a few questions:
1. Are there some components on which I should concentrate  and investigate 
more than other?
2. Few weeks ago I found a problem with _Adaptable.adaptTo()_ method in a test 
scope. For example:
{noformat}
ResourceResolver r = MockSling.newResourceResolver();
com.adobe.granite.asset.AssetManager a = r.adaptTo(AssetManager.class); 
//Returns null
{noformat}
And I have same problem with wcm.io library:
{noformat}
io.wcm.testing.mock.aem.junit.AemContext context = new AemContext();
ResourceResolver r = context.resourceResolver();
com.adobe.granite.asset.AssetManager a = r.adaptTo(AssetManager.class); //Also 
returns null
{noformat}
And I have the pretty same problems with adapting of resources in a test scope. 
I didn't investigate why yet, but probably I also can do some stuff here?

Best,
Petr

> GSoC project: create more unit and integration tests for Sling and expand 
> test coverage information
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SLING-1437
>                 URL: https://issues.apache.org/jira/browse/SLING-1437
>             Project: Sling
>          Issue Type: Task
>          Components: Testing
>            Reporter: Bertrand Delacretaz
>              Labels: gsoc, gsoc2010sling, gsoc2013, gsoc2015, java, mentor, 
> testing
>
> Sling already has fairly good test coverage, but there's always room for 
> improvement. 
> The goal of this Google Summer of Code project is to create more unit and 
> integration tests for Sling, as well as measure the test coverage that the 
> combination of unit and integration tests provide.
> Interested students are welcome to get in touch with the Sling community via 
> its developers mailing list to discuss the project, see 
> http://sling.apache.org/project-information.html#mailing-lists
> The student will have to get familiar with the Sling codebase, identify areas 
> where tests are missing, write unit and integration tests and submit the 
> results as patches that the Sling committers can verify and hopefully apply.



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

Reply via email to