Test-Driven Development with Mockito

2.89 avg rating
( 9 ratings by Goodreads )
 
9781783283293: Test-Driven Development with Mockito

Learn how to apply Test-Driven Development and the Mockito framework in real life projects, using realistic, hands-on examples

Overview

  • Start writing clean, high quality code to apply Design Patterns and principles
  • Add new features to your project by applying Test-first development- JUnit 4.0 and Mockito framework
  • Make legacy code testable and clean up technical debts

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.

What you will learn from this book

  • Create your first unit test and discover the power of unit testing
  • Familiarize yourself with Test-first Development and the refactoring process
  • Add new features to your project applying Test Driven Development
  • Create readable, maintainable, and extensible software using design principles and patterns
  • Start stubbing, mocking, spying, and verifying objects using Mockito APIs
  • Apply inside-out and outside-in TDD styles
  • Expedite the development process using Eclipse and keyboard shortcuts
  • Apply JUnit 4.0 and advanced Mockito features – argument captor, callbacks, and answers

Approach

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

Who this book is written 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.

"synopsis" may belong to another edition of this title.

About the Author:

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.

"About this title" may belong to another edition of this title.

Buy New View Book
List Price: US$ 39.99
US$ 36.92

Convert Currency

Shipping: FREE
From United Kingdom to U.S.A.

Destination, Rates & Speeds

Add to Basket

Top Search Results from the AbeBooks Marketplace

1.

Sujoy Acharya
Published by Packt Publishing Limited, United Kingdom (2013)
ISBN 10: 1783283297 ISBN 13: 9781783283293
New Paperback Quantity Available: 10
Print on Demand
Seller
The Book Depository
(London, United Kingdom)
Rating
[?]

Book Description Packt Publishing Limited, United Kingdom, 2013. Paperback. Book Condition: New. 235 x 190 mm. Language: English . Brand New Book ***** Print on Demand *****.This book is a hands-on guide, full of practical examples to illustrate the concepts of Test Driven Development. 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. Bookseller Inventory # AAV9781783283293

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 36.92
Convert Currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, Rates & Speeds

2.

Sujoy Acharya
Published by Packt Publishing Limited, United Kingdom (2013)
ISBN 10: 1783283297 ISBN 13: 9781783283293
New Paperback Quantity Available: 10
Print on Demand
Seller
The Book Depository US
(London, United Kingdom)
Rating
[?]

Book Description Packt Publishing Limited, United Kingdom, 2013. Paperback. Book Condition: New. 235 x 190 mm. Language: English . Brand New Book ***** Print on Demand *****. This book is a hands-on guide, full of practical examples to illustrate the concepts of Test Driven Development. 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. Bookseller Inventory # AAV9781783283293

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 42.51
Convert Currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, Rates & Speeds

3.

Acharya, Sujoy
Published by Packt Publishing (2016)
ISBN 10: 1783283297 ISBN 13: 9781783283293
New Paperback Quantity Available: 1
Print on Demand
Seller
Ria Christie Collections
(Uxbridge, United Kingdom)
Rating
[?]

Book Description Packt Publishing, 2016. Paperback. Book Condition: New. PRINT ON DEMAND Book; New; Publication Year 2016; Not Signed; Fast Shipping from the UK. No. book. Bookseller Inventory # ria9781783283293_lsuk

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 37.71
Convert Currency

Add to Basket

Shipping: US$ 4.92
From United Kingdom to U.S.A.
Destination, Rates & Speeds

4.

Sujoy Acharya
Published by Packt Publishing Limited (2013)
ISBN 10: 1783283297 ISBN 13: 9781783283293
New Quantity Available: > 20
Print on Demand
Seller
Pbshop
(Wood Dale, IL, U.S.A.)
Rating
[?]

Book Description Packt Publishing Limited, 2013. PAP. Book Condition: New. New Book. Shipped from US within 10 to 14 business days. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Bookseller Inventory # IQ-9781783283293

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 39.03
Convert Currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, Rates & Speeds

5.

Sujoy Acharya
Published by Packt Publishing Limited (2013)
ISBN 10: 1783283297 ISBN 13: 9781783283293
New Quantity Available: > 20
Print on Demand
Seller
Books2Anywhere
(Fairford, GLOS, United Kingdom)
Rating
[?]

Book Description Packt Publishing Limited, 2013. PAP. Book Condition: New. New Book. Delivered from our UK warehouse in 3 to 5 business days. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Bookseller Inventory # LQ-9781783283293

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 33.26
Convert Currency

Add to Basket

Shipping: US$ 11.44
From United Kingdom to U.S.A.
Destination, Rates & Speeds

6.

Sujoy Acharya
Published by Packt Publishing (2013)
ISBN 10: 1783283297 ISBN 13: 9781783283293
New Softcover Quantity Available: 1
Print on Demand
Seller
Rating
[?]

Book Description Packt Publishing, 2013. Book Condition: New. This item is printed on demand for shipment within 3 working days. Bookseller Inventory # GM9781783283293

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 49.57
Convert Currency

Add to Basket

Shipping: US$ 2.23
From Germany to U.S.A.
Destination, Rates & Speeds

7.

Acharya, Sujoy
Published by Packt Publishing (2017)
ISBN 10: 1783283297 ISBN 13: 9781783283293
New Paperback Quantity Available: 8
Print on Demand
Seller
Murray Media
(North Miami Beach, FL, U.S.A.)
Rating
[?]

Book Description Packt Publishing, 2017. Paperback. Book Condition: New. This item is printed on demand. Bookseller Inventory # 1783283297

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 51.22
Convert Currency

Add to Basket

Shipping: US$ 2.99
Within U.S.A.
Destination, Rates & Speeds

8.

Sujoy Acharya
Published by Packt Publishing Limited, United Kingdom (2013)
ISBN 10: 1783283297 ISBN 13: 9781783283293
New Paperback Quantity Available: 10
Seller
Book Depository hard to find
(London, United Kingdom)
Rating
[?]

Book Description Packt Publishing Limited, United Kingdom, 2013. Paperback. Book Condition: New. 235 x 190 mm. Language: English . This book usually ship within 10-15 business days and we will endeavor to dispatch orders quicker than this where possible. Brand New Book. This book is a hands-on guide, full of practical examples to illustrate the concepts of Test Driven Development. 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. Bookseller Inventory # LIE9781783283293

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 56.85
Convert Currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, Rates & Speeds

9.

Acharya, Sujoy
Published by Packt Publishing (2013)
ISBN 10: 1783283297 ISBN 13: 9781783283293
New Paperback Quantity Available: 1
Seller
Irish Booksellers
(Rumford, ME, U.S.A.)
Rating
[?]

Book Description Packt Publishing, 2013. Paperback. Book Condition: New. book. Bookseller Inventory # 1783283297

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 57.99
Convert Currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, Rates & Speeds

10.

Acharya, Sujoy
Published by Packt Publishing
ISBN 10: 1783283297 ISBN 13: 9781783283293
New PAPERBACK Quantity Available: > 20
Seller
Russell Books
(Victoria, BC, Canada)
Rating
[?]

Book Description Packt Publishing. PAPERBACK. Book Condition: New. 1783283297 Special order direct from the distributor. Bookseller Inventory # ING9781783283293

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 59.99
Convert Currency

Add to Basket

Shipping: US$ 7.00
From Canada to U.S.A.
Destination, Rates & Speeds

There are more copies of this book

View all search results for this book