rmannibucau.wordpress.com
Simple Java 8 JPA JUnit rule
When you have JPA specific logic or a complex object graph, you surely want to test JPA without worrying of testing your whole application (i.e you just need a plain entity manager and no container…