Learn how to apply Test-driven Development and the Mockito framework in real life projects using Packt’s new book and eBook.

December 2013 | Open Source

Packt is pleased to announce the release of its new book, Test-Driven Development with Mockito, a step-by-step guide to start writing clean, high quality code to apply design patterns and principles, and to make legacy code testable and clean up technical debts. The book is 172 pages long and is competitively priced at $39.99, while the eBook is available in all the popular formats including Kindle and PDF for $20.39.

About the Author:

Sujoy Acharya works as a software architect with Siemens Technology and Services Pvt. Ltd. (STS). He grew up in a joint family and pursued a degree in the field of Computer Science and Engineering. His hobbies include watching movies, playing outdoor sports, and downloading the latest movies. He also likes to research upcoming technologies. His major contributions are in the fields of Java, J2EE, Web service, Ajax, GWT, and Spring. With over 10 years of industrial experience, he designs and develops healthcare software products and has designed and implemented large-scale enterprise solutions.

Mockito is an open source testing framework for Java released under the MIT License. The framework allows test double objects (mock objects) to be created in automated unit tests for the purpose of Test-driven Development (TDD) or Behavior Driven Development (BDD).

With Test-Driven Development with Mockito, readers can create their first unit test and discover the power of unit testing, along with familiarizing themselves with Test-first Development and the refactoring process which will help to add new features to a project applying TDD. Users can also create readable, maintainable, and extensible software using design principles and patterns and to apply inside-out and outside-in TDD styles. The book also helps readers to learn stubbing, mocking, spying, and verifying objects using Mockito APIs and how to apply JUnit 4.0 and advanced Mockito features, including argument captor, callbacks, and answers.

Test-Driven Development with Mockito covers the following topics:

Chapter 1: Getting Familiar with TDD

Chapter 2: Refactoring – Roll the Dice

Chapter 3: Applying TDD

Chapter 4: Understanding the Difference between Inside-out and Outside-in

Chapter 5: Test Doubles

Chapter 6: Mockito Magic

Chapter 7: Leveraging the Mockito Framework in TDD

Chapter 8: World of Patterns

Chapter 9: TDD, Legacy Code, and Mockito

This book is ideal for developers who want to develop software following Test Driven Development using Mockito and leveraging various Mockito features. One doesn't need prior knowledge of TDD, Mockito, or JUnit. This is a good book for users who have some experience in Java application development as well as a basic knowledge of unit testing. It covers the basic fundamentals of TDD and JUnit testing to get readers acquainted with these concepts before delving into them. For more information, visit the book's page http://www.packtpub.com/test-driven-development-with-mockito/book


Test-Driven Development with Mockito
Add new features to your project by applying Test-first development- JUnit 4.0 and Mockito framework

For more information, please visit: http://www.packtpub.com/test-driven-development-with-mockito/book

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software