JUnit & Spring – What You Don’t Know
Gordon Dickens, Chariot architect and one of our education trainers, recently wrote this blog post on JUnit and Spring. When using JUnit in Spring there are several features added that many developers are not aware of. First, if you are including the Spring Context in your tests, it becomes an Integration Test, no longer a Unit Test. 1. Default Searching of Context File(s) To instruct Spring to load beans for the tests in the class, we annotate the class with…