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
December 31, 2013