December 31, 2013

All your database related unit tests for a play 2 java application have to handle the fakeApplication startup, load an fresh in memory database and load the test related fixtures. You need fixy and this helper to do the trick: public class ModelTest { public FakeApplication app; public Fixy fixtures; EntityManager em = null; EntityTransaction

Read More

December 30, 2013

Fixtures is a fancy word for sample data. Fixtures allow you to populate your testing database with predefined data before your tests run. The fixture implementation for loading testdata in play 1 was great. But all fixture related code for play 2 I found was ebean releated. After some research I decided to use Fixy

Read More

December 29, 2013

After the decision to go for JPA instead of Ebean with a Play Framework project, the first problem to solve was a replacement for the ebean finder. The project team started with these simple requirements: Jpa based Easy to use Can return a finder object, to add restrictions outside of the model (Used for generic

Read More

December 3, 2013

The play web service API provides an easy way to use your play application as an http client. Usually you should use Play’s asynchronous mechanisms to use the web service response. But sometime you just want to wait for the web service responce (in a job). You can do this with the following method: public

Read More

December 2, 2013

Just bought a ticket to Ping Play! Edition. A 2-day by-the-community and for-the-community conference about the Play Framework. Anybody knows a good hotel near BMC?

Read More