Commencez à lire Test-Driven Development with Mockito sur votre Kindle dans moins d'une minute. Vous n'avez pas encore de Kindle ? Achetez-le ici Ou commencez à lire dès maintenant avec l'une de nos applications de lecture Kindle gratuites.

Envoyer sur votre Kindle ou un autre appareil


Essai gratuit

Découvrez gratuitement un extrait de ce titre

Envoyer sur votre Kindle ou un autre appareil

Désolé, cet article n'est pas disponible en
Image non disponible pour la
couleur :
Image non disponible

Test-Driven Development with Mockito [Format Kindle]

Sujoy Acharya

Prix conseillé : EUR 18,98 De quoi s'agit-il ?
Prix éditeur - format imprimé : EUR 32,69
Prix Kindle : EUR 13,29 TTC & envoi gratuit via réseau sans fil par Amazon Whispernet
Économisez : EUR 19,40 (59%)

App de lecture Kindle gratuite Tout le monde peut lire les livres Kindle, même sans un appareil Kindle, grâce à l'appli Kindle GRATUITE pour les smartphones, les tablettes et les ordinateurs.

Pour obtenir l'appli gratuite, saisissez votre adresse e-mail ou numéro de téléphone mobile.


Prix Amazon Neuf à partir de Occasion à partir de
Format Kindle EUR 13,29  
Broché EUR 32,69  

Offre Éclair Kindle Abonnez-vous à la Newsletter Offre Éclair Kindle et recevez un ebook gratuit.

Assurez-vous d'avoir bien coché la case Offre Éclair Kindle, puis cliquez sur "Abonnez-vous" pour vous inscrire. Vous recevrez par email votre code promotionnel permettant d'obtenir votre ebook gratuit.

Descriptions du produit

Présentation de l'éditeur

In Detail

The usual life cycle of code involves adding code, breaking an existing functionality, fixing that and breaking a new area! This fragility can be fixed using automated tests and Test Driven Development.

TDD’s test first approach expedites the development process and unit tests act as safety nets for code refactoring and help in maintaining and extending the code. This makes TDD highly beneficial for new projects.

This practical, hands-on guide provides you with a number of clear, step-by-step exercises that will help you to take advantage of the real power that is behind Test Driven Development and the Mockito framework. By using this book, you will gain the knowledge that you need to use the Mockito framework in your project.

This book explains the concept of Test Driven Development (TDD), including mocking and refactoring, as well as breaking down the mystery and confusion that surrounds the test first approach of TDD. It will take you through a number of clear, practical examples that will help you to take advantage of TDD with the Mockito framework, quickly and painlessly.

You will learn how to write unit tests, refactor code and remove code smells. We will also take a look at mock objects and learn to use Mockito framework to stub, mock, verify and spy objects for testability. You will also learn to write clean, maintainable, and extensible code using design principles and patterns.

If you want to take advantage of using Test Driven Development and learn about mocking frameworks, then this is the book for you. You will learn everything you need to know to apply Test Driven Development in a real life project, as well as how to refactor legacy code and write quality code using design patterns.


This book is a hands-on guide, full of practical examples to illustrate the concepts of Test Driven Development.

Who this book is for

If you are a developer who wants to develop software following Test Driven Development using Mockito and leveraging various Mockito features, this book is ideal for you. You don’t need prior knowledge of TDD, Mockito, or JUnit.

It is ideal for developers, who have some experience in Java application development as well as a basic knowledge of unit testing, but it covers the basic fundamentals of TDD and JUnit testing to get you acquainted with these concepts before delving into them.

Biographie de l'auteur

Sujoy Acharya

Sujoy Acharya works as a Software Architect with Siemens Technology and Services Pvt Ltd. (STS). He grew up in a joint family and graduated in the field of Computer Science and Engineering. His hobbies include watching movies, outdoor sports, and downloading the latest movies.

He likes to research upcoming technologies. His major contributions are in the fields of Java, J2EE, Web service, Ajax, GWT, and Spring. He designs and develops healthcare software products.

He has over 10 years of industrial experience and has designed and implemented large-scale enterprise solutions.

Détails sur le produit

  • Format : Format Kindle
  • Taille du fichier : 5192 KB
  • Nombre de pages de l'édition imprimée : 172 pages
  • Editeur : Packt Publishing (22 novembre 2013)
  • Vendu par : Amazon Media EU S.à r.l.
  • Langue : Anglais
  • ASIN: B00GUKM79G
  • Synthèse vocale : Activée
  • X-Ray :
  • Word Wise: Non activé
  • Classement des meilleures ventes d'Amazon: n°189.515 dans la Boutique Kindle (Voir le Top 100 dans la Boutique Kindle)
  •  Souhaitez-vous faire modifier les images ?

En savoir plus sur l'auteur

Découvrez des livres, informez-vous sur les écrivains, lisez des blogs d'auteurs et bien plus encore.

Commentaires en ligne

Il n'y a pas encore de commentaires clients sur
5 étoiles
4 étoiles
3 étoiles
2 étoiles
1 étoiles
Commentaires client les plus utiles sur (beta) 3.6 étoiles sur 5  5 commentaires
2 internautes sur 2 ont trouvé ce commentaire utile 
3.0 étoiles sur 5 Introduction to Wide Variety of Topics Related to Test-Driven Development 16 février 2014
Par Dustin Marx - Publié sur
Test-Driven Development with Mockito, as its title suggests, covers test-driven development and using Mockito to aid test-driven development. Although the book is relatively short at about 150 pages of substantive text, it covers numerous topics including test-driven development, unit testing, refactoring, object design, JUnit, Mockito, Eclipse, Agile methodologies, and more. The main advantages of the book are the ability to access information about all of these topics in a single place and being able to see how these things are used together. The drawback to this is that none of the topics get as much in-depth coverage as they might in individual books that focus on each topic. A reader might choose this book to introduce himself or herself to these topics and then move onto a more focused book for greater detail on topics of interest.

Test-Driven Development with Mockito includes some nice images depicting use of Eclipse's refactoring keyboard shortcuts and Jenkins configuration. The code listings are not shown with color syntax (even in the PDF version I reviewed) and can be difficult to read, especially when spanning multiple pages. There are some typos in the book and some awkward and incomplete sentences, but these do not prevent the messages from being conveyed.

Test-Driven Development with Mockito is probably best suited for people who have little or no experience with the approaches covered in the book and want to be introduced to them in a single book.
1 internautes sur 1 ont trouvé ce commentaire utile 
4.0 étoiles sur 5 somewhat overstates its case 9 mars 2014
Par W Boudville - Publié sur
Overall, the book is a well done explanation of test driven development. It lets someone who has never done this see the value of incorporating many tests of classes or methods into the code base, while the latter is still being developed. The author contrasts this with the traditional waterfall method, where programmers write code and get this to the testers to find bugs. This is considered too coarse grained and slow. In TDD, the decision loop is far quicker.

So having a large array of unit tests is good. Along these lines, the book also advises on other aspects. Like when not to refactor, or when to stop refactoring. For example, if the code is broken in a certain area, you might not want to start or keep refactoring. Instead, fix the code first and verify using tests. Then refactor. In other words, refactor when all tests give green so that you start from a known good basis.

But the book's advice might be too extreme. In one section, it suggests "write code only to satisfy tests". You are cautioned not to take this too literally. When making a program from scratch, or an entirely new code section, being constrained by that can slow you down. It is best suited for when there is an existing code base and you are making relatively small extensions. In practice, few experienced programmers will be able or indeed should adhere to "write code only to satisfy tests". The book overstates its case.

Having said this, you should aspire to having as many unit tests as practical. And to automate the running of these. It can be a great comfort to simply run all the tests every day or so, to reassure that no known bugs have surfaced.
1 internautes sur 1 ont trouvé ce commentaire utile 
4.0 étoiles sur 5 Good introduction to TDD 10 mars 2014
Par Doug Duncan - Publié sur
Format:Format Kindle
Disclaimer: I was given a reviewer's copy of 'Test Driven Development with Mockito'. The fact that I was given a copy of the book in exchange for a written review has in no way influenced my rating of the book.

Test Driven Development with Mockito by Sujoy Acharya is a good introduction to Test Driven Development (TDD) and should get a person new to this methodology up to speed quickly. There are just a couple chapters that actually deal with using Mockito though.

Chapters 1 through 3 bring you up to speed on what TDD is and how to apply it. Chapter 1 gives a definition of TDD and what the methodology is all about. Chapter talks about refactoring: when to do it, when not to do it and when to stop. Chapter 3 talks about applying TDD.

Chapters 4 and 5 start covering the different styles of testing: outside in (mainly used for acceptance and regression testing) and inside out (mainly used in development). Chapter 5 talks about what the author calls "test doubles" which are stubs, mocks, dummies and fakes.

Chapters 6 and 7 are where we're introduced and shown Mockito in action and how to use it in a TDD environment. You learn how to stub, mock and spy objects which allows you to better test the code's logic and not external dependencies (database connections, email, etc.).

Chapter 8 talks about patterns and gives examples of replacing conditional logic with both the command pattern and the strategy pattern.

Finally chapter 9 talks about adding TDD to legacy code that had no tests originally.

There are two appendixes in the book. Appendix A talks about different tools such as Eclipse and JUnit, while Appendix B talks about agile practices.

Overall I thought the author did a good job of meeting the objectives he set out to meet when writing this book. I wasn't crazy with how some of the code examples were inline text and others were screen shots and there were a couple issues with the text. This book would be good for someone new to TDD and Mockito, but probably not helpful for those who have some experience with either.
3.0 étoiles sur 5 if you use tdd and want to write more readable ... 19 janvier 2015
Par  - Publié sur
if you use tdd and want to write more readable test through mockito,and you are new to mockito,it's worth reading
1 internautes sur 5 ont trouvé ce commentaire utile 
4.0 étoiles sur 5 BOUGHT FOR A GIFT 24 mars 2014
Par Verda Brunkow - Publié sur
Format:Broché|Achat vérifié
Ordered this for a requested birthday gift. Never heard any complaints from the receiver, but he might not have complained.
Ces commentaires ont-ils été utiles ?   Dites-le-nous

Discussions entre clients

Le forum concernant ce produit
Discussion Réponses Message le plus récent
Pas de discussions pour l'instant

Posez des questions, partagez votre opinion, gagnez en compréhension
Démarrer une nouvelle discussion
Première publication:
Aller s'identifier

Rechercher parmi les discussions des clients
Rechercher dans toutes les discussions Amazon

Rechercher des articles similaires par rubrique