In my web applications, the datasource is often defined in Tomcat (see here), when I execute my integration tests using JUnit, I don’t need Tomcat, but I need an access to the database, and to the Spring context too. My solution is to create an abstract test which provides me these features, I use: the… Continue reading Add datasource access in tests