Testing a REST API

Testing tasks are fundamental on the software development process. These tasks goals are covering the different quality axes of each of the diverse artifacts developed. Unit testing, Load Testing, Integration testing are just some examples of the many types of possible test types. Each one has a different purpose, for instance unit testing allows us to ensure the code provides the expected result. Integration testing on the other hand allows to review that combining different units or components will provide the expected results.

For the purpose of this post we are doing test that allow us to ensure the REST services developed on Developing a CRUD REST API on IBM Bluemix are up, running correctly. Please be aware that the test are not to review the results are valid or not, just to review they are running and what is the time they take to respond. Continue reading

Developing a CRUD REST API on IBM Bluemix

On our last post Developing a JEE REST API on IBM Bluemix we show you how to create the base REST services for our CRUD application. On todays post we are adding a Database and a JPA connection for the services. On the next post we will show you how to test the system using Unit testing.

This post 1) we create the database connection, 2)prepare the JPA persistence unit, 3)Implement the code that connects the rest services to the storage, and finally 4)Review the app is working so we can test the REST services. Continue reading