It’s been a while I didn’t post anything… Today I’m back with Mockito 🙂 I played with it on my project and I learn some stuff… Ok, it’s mainly because I had some errors in my tests but still… It’s always good to share even if I am the only one who use this samples!… Continue reading Mockito & Co!
Tag: JUnit
Add datasource access in tests
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