© Paul Fisher and Brian D. Murphy 2016

Paul Fisher and Brian D. Murphy, Spring Persistence with Hibernate, 10.1007/978-1-4842-0268-5_7

7. Effective Testing

Paul Fisher and Brian D. Murphy2

(1)Brookyln, New York, USA

(2)Maplewood, New Jersey, USA

Automated testing, and unit testing in particular, is now universally regarded as a best practice for software development. A number of testing frameworks are available. There remains plenty of room to debate the merits of unit testing versus integration testing; whether to mock objects with frameworks like Mockito or to take a more classic approach with basic stubs; when to apply test-driven development (TDD); whether behavior-driven development (BDD) will become commonplace; and so on.

Throughout this book, ...

Get Spring Persistence with Hibernate, Second Edition 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.