I am trying to write unit tests for hibernate DAOs, if I create test-applicationContext with postgres dialect, then do I need to install postgres to run the tests? Is there any better way to do this without having to install DB just to run the test cases? Thanks
1 Answer
You can use the H2 database that can also run as a in-memory database. Check this blog for a quick example.