Test-driven development relies on a test-first procedure that emphasizes writing a test before the code, and then refactoring the code to optimize it. Performing TDD with Java improves the productivity of programmers and maintainability and performance of code. It also develops a deeper understanding of the language and shows how to employ it.
This is an excellent book to start learning about Test driven developpement in Java. In each chapter, the author defines a practical use case, with detailed specifications. Then, he writes, step by step, tests, code implementations, and refactorings. Authors go through the most used test APIs and compares them (with practice). If you are a beginner Java programmer, this book is for you. You will learn too many technologies about testing, and developpement tools. In addition, this book introduces practical use of Vagrant, Docker and Mongodb.
Pretty good introduction to TDD and a briefly introduction to BDD, CI as well. I like the idea, to try some unit test framework and pick what fits for you. I'll definitely recommend this book for my colleagues.
This entire review has been hidden because of spoilers.
I would not say that the book has any remarkable content. Actually it might be even useless for experienced Java programmers. However I gave it a good ratting because it does a single job really well: covering all the basics of testing Java applications.
Although it might be lacking depth for a person wanting to learn TDD, if you already work this way within another language and now want to learn how it is done in Java, this book will be excellent.
This is a great introduction to TDD, covering tdd (and) bdd basics, tools and best practices, giving you a hands-on experience with unit, acceptance and integration testing.
If you're unsure whether you need to switch to tdd, then read introduction and conclusion chapters to understand the problem and get summary of how it can be resolved.