Chapter 7: Integration Testing with JUnit

Automated testing has been a hot topic for quite a while, almost to the point of being a de facto requirement for projects. JUnit is the most popular implementation of automated testing frameworks, and Spring integrates with it quite well. You'll find other automated testing frameworks out there, but we'll stick with the ubiquitous JUnit (specifically JUnit 4.4) and Spring integration to perform common automated testing needs.

Testing is one of Spring's strong suits. First and foremost, testing is among the best practices that Spring encourages; other best practices include layering and coding to interfaces, which you saw earlier. A code base that is broken down into layers such that each layer has a ...

Get Spring Persistence: A Running Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.