Summary

The HTTP layer is made of the routes and controllers.Items components. The business layer is now made of two components, models.Shop and db.Schema (in Java, the latter component is hidden by JPA).

In this chapter, you saw how to write testing specifications for your web service, how to call your actions, supply them with fake HTTP requests, and process their results. You also saw how to integrate with relational database technologies. You learned that you can use the Play singleton to get a reference to the currently running application and, for instance, read its configuration settings. You learned how to hook into your application's life cycle using a global object. Finally, you saw how to start a fake application in your tests.

In the ...

Get Play Framework Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.