Hi Malmee, I have few questions:
- Why do we use servlets to implement a REST API instead of JAX-RS? Have a look at [1]. - Why are we having two servlets instead of one? - Why do we assign values to constants in runtime, don't they need to be final? Constants.CERTIFICATE_PATH = TestConstants.TEST_CERTIFICATE; Constants.DIRECTORY_SOURCE_SCRIPT = TestConstants.TEST_DIRECTORY_SOURCE_SCRIPT; Constants.ROOT_DIRECTORY = TestConstants.OUTPUT_DIRECTORY; [1] https://nikolaygrozev.wordpress.com/2014/10/16/rest-with-embedded-jetty-and-jersey-in-a-single-jar-step-by-step/ Thanks On Fri, Jan 8, 2016 at 9:38 AM, Malmee Weerasinghe <[email protected]> wrote: > Hi All, > We have added unit tests for the Artifact Migration Tool which converts > PPaaS 4.0.0 artifact JSON files to PPaaS 4.1.x. [1] > > The testing is done using Jetty web server to mock the REST API by adding > two servlets. The response JSONs are transformed from the tool and the > output files are tested with a set of sample output files in the test case. > > [1] > https://github.com/nishadi/product-private-paas/tree/master/tools/migration/ppaas-artifact-converter > > Thanks > > > -- > Malmee Weerasinghe > WSO2 Intern > mobile : (+94)* 71 7601905* | email : <[email protected]> > [email protected] > -- *Imesh Gunaratne* Senior Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
