Faça download dos Aplicativos de Leitura Kindle Gratuitos e comece a ler eBooks Kindle nos mais populares smartphones, tablets e computadores pessoais. Para enviar o link de download para seu smartphone por SMS, use o formato internacional sem espaços (Código Internacional+DDD+Número. Exemplo: +551199999999)

  • Apple
  • Android
  • Windows Phone
  • Android

Para receber o link de download digite seu celular:

Preço Kindle: R$ 45,99

R$ 57,32 (55%)


Essas promoções serão aplicadas a este item:

Algumas promoções podem ser combinadas; outras não são elegíveis. Para detalhes, por favor, acesse os Termos e Condições dessas promoções.

Entregar no seu Kindle ou em outro dispositivo

Entregar no seu Kindle ou em outro dispositivo

Anúncio do aplicativo do Kindle

Test-Driven Development with Mockito eBook Kindle

Ver todos os 2 formatos e edições Ocultar outros formatos e edições
Novo a partir de Usado a partir de
eBook Kindle
"Tente novamente"
R$ 45,99

Número de páginas: 174 páginas Configuração de fonte: Habilitado Page Flip: Habilitado
Idioma: Inglês

Novidades da Loja Kindle
Novidades da Loja Kindle
eBooks novos para sua biblioteca digital. Veja aqui

Descrições do Produto

Descrição do produto

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.

Sobre o Autor

Sujoy Acharya works as a software architect with Siemens Technology and Services Pvt. Ltd. (STS). He grew up in a joint family and pursued his graduation in the fi eld of computer science and engineering. His hobbies are watching movies, playing outdoor sports, and downloading the latest movies. He likes to research upcoming technologies. His major contributions are in the fi elds 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.

Detalhes do produto

  • Formato: eBook Kindle
  • Tamanho do arquivo: 7589 KB
  • Número de páginas: 174 páginas
  • ISBN da fonte dos números de páginas: 1783283297
  • Editora: Packt Publishing (22 de novembro de 2013)
  • Vendido por: Amazon Servicos de Varejo do Brasil Ltda
  • Idioma: Inglês
  • ASIN: B00GUKM79G
  • Leitura de texto: Habilitado
  • X-Ray:
  • Dicas de vocabulário: Não habilitado
  • Leitor de tela: Compatível
  • Configuração de fonte: Habilitado
  • Avaliação média: Seja o primeiro a avaliar este item
  • Lista de mais vendidos da Amazon: #241,082 entre os mais vendidos na Loja Kindle (Conheça os 100 mais vendidos na Loja Kindle)

Avaliação de clientes

Ainda não há avaliações de clientes para este título na Amazon.com.br
5 estrelas
4 estrelas
3 estrelas
2 estrelas
1 estrela

Avaliações mais úteis de consumidores na Amazon.com (beta) (Pode incluir avaliações do Programa de Recompensas para Primeiros Avaliadores)

Amazon.com: 3.2 de 5 estrelas 7 avaliações
Esta avaliação foi considerada útil por 1 de 6 pessoa(s):
4.0 de 5 estrelas BOUGHT FOR A GIFT 24 de março de 2014
Por Verda Brunkow - Publicada na Amazon.com
Formato: Capa comum Compra verificada
Ordered this for a requested birthday gift. Never heard any complaints from the receiver, but he might not have complained.
3.0 de 5 estrelas Very, very light "robotic" introduction 11 de março de 2015
Por Riccardo Audano - Publicada na Amazon.com
Formato: Capa comum
It seems to me that Packt Publishing business plan is for "quantity over quality".. in particular producing a myriad of small booklets on the most disparate subjects, often with "improbable" and improvised authors.. Most of those are plan horrible, but a "lucky few" are worth reading. This is one of the exceptions, it could be useful for someone completely new to the idea of refactoring, unit testing and mocking. It does try to cover also object oriented design, software development methodologies and design pattern, but those are topics for which is very difficult to give a light introduction without generating just a lot of confusion, and this booklet is definitely not even close to introduce the in a significant and useful way...
Writing style also could be improved, it's very "robotic", a mechanical sequence of disconnected sentences that make sense all by themselves but lack cohesion.
Esta avaliação foi considerada útil por 2 de 2 pessoa(s):
3.0 de 5 estrelas Introduction to Wide Variety of Topics Related to Test-Driven Development 16 de fevereiro de 2014
Por Dustin Marx - Publicada na Amazon.com
Formato: Capa comum
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.
Esta avaliação foi considerada útil por 1 de 1 pessoa(s):
4.0 de 5 estrelas Good introduction to TDD 9 de março de 2014
Por Doug Duncan - Publicada na Amazon.com
Formato: eBook 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.
Esta avaliação foi considerada útil por 1 de 2 pessoa(s):
4.0 de 5 estrelas somewhat overstates its case 9 de março de 2014
Por W Boudville - Publicada na Amazon.com
Formato: Capa comum
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.
click to open popover

Onde está meu pedido?

Frete e devoluções

Precisa de ajuda?