Hi Sameera, I was under the impression that pax exam tests are integration tests as we are creating an osgi environment with bundles to run the tests. In that case how can I proceed ?
Hi Aruna/Chanaka, I went through the links. Having the tests annotated with pax will make the client code run in an osgi environment. I will have to add the client jars also to the pax exam osgi environment configurations. Not sure whether its possible to run the tests using testng and have the osgi environment built with pax exam. Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +94777688882 On Wed, Jun 15, 2016 at 2:44 PM, Sameera Jayasoma <same...@wso2.com> wrote: > Hi Hemika, > > I think we should not use PAX exam to implement your test case. I think > this falls under the category of integration tests. PAX Exam should be used > only to test in-container tests which you cannot test using unit tests. > > Thanks, > Sameera. > > On Wed, Jun 15, 2016 at 1:11 PM, Hemika Kodikara <hem...@wso2.com> wrote: > >> Hi All, >> >> In C4, We had integration tests running in a way that the server is >> started up by the test framework and the MB test cases were done through a >> JMS client. This JMS client is completely independent from MB(has no >> dependencies from MB other than the andes client jar). >> >> For C5, How can I achieve this ? IMO, running the JMS client in an OSGi >> environment is not required. Is it possible to start and stop the server >> using pax exam per testng suite ? >> >> Is there an example on how to achieve this ? As far I see, the only task >> that needs to be done through pax exam is to start and stop the MB server >> environment. >> >> Any advice on this ? >> >> Regards, >> Hemika >> >> Hemika Kodikara >> Software Engineer >> WSO2 Inc. >> lean . enterprise . middleware >> http://wso2.com >> >> Mobile : +94777688882 >> > > > > -- > Sameera Jayasoma, > Software Architect, > > WSO2, Inc. (http://wso2.com) > email: same...@wso2.com > blog: http://blog.sameera.org > twitter: https://twitter.com/sameerajayasoma > flickr: http://www.flickr.com/photos/sameera-jayasoma/collections > Mobile: 0094776364456 > > Lean . Enterprise . Middleware > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev