Java EE 7 Sample With JPA Integration Tests Released 📎
The v0.0.3 version of Java EE Boundary Control Entity project is available.
New in this version are automated JPA integration tests:
public class RegistrationIT {
EntityManager em;
EntityTransaction tx;
@Before
public void initEM() {
this.em = Persistence.createEntityManagerFactory("integration-test").createEntityManager();
this.tx = this.em.getTransaction();
}
(...)
}
Execute:
mvn archetype:generate -Dfilter=com.airhacks:javaee-bce-archetype
then
mvn clean install
mvn failsafe:integration-test
See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!