For unit tests (call them integration tests if you want) I have configured an embedded database in my Spring config like so:
I had the same problem, but it was because I forgot to add the annotation @Entity on one of my entities. I add it and it work now ! I hope this helps someone.