Yes for the sample wise it is much simpler, but for simple jersey example 
how manay dependencies related to web-pax-exam and pax-exam required it is 
little difficult as from parent to POM to web-jersey 
<https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples/web-jersey> and 
again in pax-web-itest-container/pax-web-itest-container-jetty 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fops4j%2Forg.ops4j.pax.web%2Fblob%2Fmaster%2Fpax-web-itest%2Fpax-web-itest-container%2Fpax-web-itest-container-jetty%2Fsrc%2Ftest%2Fjava%2Forg%2Fops4j%2Fpax%2Fweb%2Fitest%2Fjetty%2FJerseyCustomContextIntegrationTest.java&sa=D&sntz=1&usg=AFQjCNGc1hVwFFALfAjh1pdUh6-F9dlhXw>
 POM 
inheriting many dependency and also in configuration []Option takes many 
bundles for simple jersey example

So it was difficult to identify which pax-exam dependency required for 
which sample running in jetty

On Wednesday, May 31, 2017 at 8:08:31 PM UTC+5:30, Achim Nierbeck wrote:
>
> Hi, 
>
> sorry to say, but those are the most simple examples you'll find. 
> Believe me we're not making them harder then they need to. 
>
> here is the example: 
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples/web-jersey
>
> the corresponding test is: 
>
> https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/JerseyCustomContextIntegrationTest.java
>  
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fops4j%2Forg.ops4j.pax.web%2Fblob%2Fmaster%2Fpax-web-itest%2Fpax-web-itest-container%2Fpax-web-itest-container-jetty%2Fsrc%2Ftest%2Fjava%2Forg%2Fops4j%2Fpax%2Fweb%2Fitest%2Fjetty%2FJerseyCustomContextIntegrationTest.java&sa=D&sntz=1&usg=AFQjCNGc1hVwFFALfAjh1pdUh6-F9dlhXw>
>
> regards, Achim 
>
>
> 2017-05-31 16:14 GMT+02:00 Umesh Rajani <[email protected] <javascript:>>
> :
>
>> Hi 
>>
>> I have gone through :https://github.com/ops4j/org.ops4j.pax.web
>> I have checked examples :
>> https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty
>>
>> But it is too much complex to replicate in my own code, I want to perform 
>> runtime unit test for jersey REST bundle, I checked there are already 
>> sample test for jersey given but it hard to decode and replicate.
>>
>> So do we have any simple example to use Web PAX-Exam for unit test for 
>> any web application.
>>
>> I'm already using PAX-Exam for unit testing for non-web bundle and it 
>> works fine. but to test 
>> REST jersey giving me nightmare 
>>
>> Please anyone has gone through any simple example.
>>
>> Thank you 
>>
>> -- 
>> -- 
>> ------------------
>> OPS4J - http://www.ops4j.org - [email protected] <javascript:>
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OPS4J" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & 
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master 
>
>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to