Hi Vinod, Assuming that you are using MSF4J for the REST service implementation, you can use the "org.wso2.msf4j.MicroservicesRunner" class to start up a specific service. See [1] for a sample.
Basically you create an instances of your REST service which implements " org.wso2.msf4j.Microservice" interface and pass it to a MicroserviceRunner instance. Then deploy it. See the @BeforeClass and @AfterClass annotated methods in [1]. [1] - https://github.com/wso2/carbon-business-messaging/blob/c5-migration/components/andes-rest-service/src/test/java/org/wso2/carbon/andes/rest/tests/unit/DestinationsTestCase.java Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +94777688882 On Tue, Aug 16, 2016 at 5:56 AM, Vinod Kavinda <[email protected]> wrote: > Hi, > I'm working in $subject. In C4 we had utility methods to start a server > instance and get server URLs. Then we used a HTTP client to test rest APIs. > > In C5 how do we achieve the same? > > Regards, > Vinod > > -- > Vinod Kavinda > Software Engineer > *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.* > Mobile : +94 (0) 712 415544 > Blog : http://soatechflicks.blogspot.com/ > [image: http://wso2.com/signature] > <http://wso2.com/signature> > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
