[ 
http://jira.amdatu.org/jira/browse/AMDATU-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11191#comment-11191
 ] 

Ivo Ladage - van Doorn edited comment on AMDATU-379 at 5/13/11 10:46 AM:
-------------------------------------------------------------------------

The method TestContext.getService(Class<T> serviceClass) doesn't always return 
the service. In the Amdatu Auth integration test (Authtest.java), 
testContext.getService(OAuthServiceProvider.class) returns null while this 
service is definitely running; using getAllServiceReferences the service is 
returned.

More stuff to consider:
- The WebFixture does not deploy the tenant resolvers (hostname & parameter), 
which means that tenant aware REST services will return a 404 by default. So 
when invoking REST services (which is most likely when you deploy the 
WebFixture), you probably need to deploy these two artifacts yourself, after 
debugging for some time to figure out why the REST services return a 404.
- The WebFixture does not provide the Felix HttpService config

      was (Author: ivol):
    The method TestContext.getService(Class<T> serviceClass) doesn't always 
return the service. In the Amdatu Auth integration test (Authtest.java), 
testContext.getService(OAuthServiceProvider.class) returns null while this 
service is definitely running; using getAllServiceReferences the service is 
returned.
  
> Create Pax Exam 2 based integration test framework
> --------------------------------------------------
>
>                 Key: AMDATU-379
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-379
>             Project: Amdatu
>          Issue Type: Improvement
>          Components: Amdatu Core, Amdatu Web
>    Affects Versions: 0.2.1
>            Reporter: Bram de Kruijff
>         Attachments: opensocial-itest-example.zip
>
>
> The integration-tests module based on Pax Exam 1 is not longer suitable as it 
> is non modular assuming all platform/projects to be on the classpath. Simply 
> splitting it up leads to deplication of a lot of code/config duplication [1]. 
> Finally Pax Exam 2 is almost finished providing a far more stable and faster 
> native test container.
> So the new framework should be something like:
> * Support modular testing
> * Minimized code/config duplication
> * Be Pax Exam 2 native based
> [1] 
> http://jira.amdatu.org/jira/browse/AMDATUCASSANDRA-7?focusedCommentId=11135&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-11135

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to