Book Image

Play Framework Essentials

By : Julien Richard-Foy
Book Image

Play Framework Essentials

By: Julien Richard-Foy

Overview of this book

Table of Contents (14 chapters)
Play Framework Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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