Tagged: PlayFramework

How to use the Play WS library in a standalone Scala app

The Play WS library makes it possible to execute HTTP requests and process the response asynchronously. It provides an awesome API that is incredibly easy to use. (I’ve provided a few simple WS examples toward the end of this post.) Prior to the release of Play 2.4 (the current 2.4 release is the M2 milestone release), it was possible to utilize the WS API in a standalone Play app, however...

Testing with Specs2 and Play ReactiveMongo

Are you building a Scala PlayFramework application with ReactiveMongo? Are you testing your application with Specs2? Are some of your tests failing with the dreaded, “Can’t get ClosableLazy value after it has been closed”? Do those same tests pass, if they are run individually? If so, this post is for you! Note: A full stack trace for the dreaded ClosableLazy can be found in the Appendix of this post. In...