Could not raise an issue in the bug tracker so though someone might want a heads up on this anyway...
In my JUnit test, I use Java 8 "Runnable" lambda expression to run the main body of my JPA test so - to avoid having to
implement full blown AOP around advice. If I do this then EntityManager is not injected!
If I use a non Java 8 idiom - anonymous inner Runnable instead of the lambda it is injected.
Debug breakpoint shows that the injection is null before any lambda code is executed
Thanks! Can you report this issue in JIRA?