Hi Denuwanthi, In C 5.2.0-m3, we have introduced pax exam container level testing [1]. Did you check if we can test it via it?
[1] - https://github.com/wso2/carbon-kernel/blob/master/docs/DeveloperTools/UsingIn-ContainerOSGiTesting.md Regards, Nira On Tue, Mar 28, 2017 at 11:05 PM, Denuwanthi De Silva <[email protected]> wrote: > Hi, > > 1. I have a micro service registered in a uuf app via component.yaml > > apis: > - className: > "org.wso2.is.portal.user.client.api.micro.PasswordUtilityMicroService" > uri: "/passwordUtil-micro-service/" > > Now, the url for the micorservice is in the form of > > /admin-portal/root/apis/passwordUtil-micro-service/validatePassword > > 2. Inside the microservice I call an OSGI service. > > BundleContext bundleContext = > FrameworkUtil.getBundle(PasswordValidationService.class).getBundleContext(); > > > 3.When writing a test case with 'MicroServicesRunner' since it is a > non-osgi environment, my OSGI service is not fetched. > > 4.Then we tried to write as an osgi test. Then it says it cannot find > 'admin-portal' app > > > Is there a way we can deploy the uuf app when running the tests?(We are on > kernel 5.1.0) > > > Thanks > -- > Denuwanthi De Silva > Senior Software Engineer; > WSO2 Inc.; http://wso2.com, > Email: [email protected] > Blog: https://denuwanthi.wordpress.com/ > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Niranjan Karunanandham* Associate Technical Lead - WSO2 Inc. WSO2 Inc.: http://www.wso2.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
