373839404142434445
private TodoServiceImpl todoService; @Before public void setUp() throws Exception { assertNotNull(entityManager); ao = new TestActiveObjects(entityManager); todoService = new TodoServiceImpl(ao); System.out.println("--- Do test ---"); }
17181920212223
{ protected EntityManager entityManager; protected ActiveObjects createActiveObjects() { return new TestActiveObjects(entityManager); }