Chapter 2. Persisting Data and Testing
In this chapter, you will see how you can write executable specifications for your web service and how Play can integrate mainstream data persistence technologies like RDMSes or document stores. More precisely, you will see how to perform the following:
- Write and run unit tests
- Simulate HTTP requests and inspect returned HTTP responses
- Persist data using an RDBMS
- Use an in-memory database for development
Testing your web service
The architecture of your web service is depicted in the following diagram:
This section presents the testing libraries that are integrated with Play and the testing infrastructure provided ...
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.