Practical Unit Testing with JUnit and Mockito
Language: English
Published by Tomasz Kaczanowski, 2013
- Softcover
- Used

Seller: WorldofBooks, Goring-By-Sea, WS, United KingdomWorldofBooks
AbeBooks seller since March 16, 2007
Condition: Used - Very good
US$ 6.34
Quantity: 3 available
Add to basketItem description from seller
The book has been read, but is in excellent condition. Pages are intact and not marred by notes or highlighting. The spine remains undamaged.
Seller Inventory # GOR007447274
- Title
- Practical Unit Testing with JUnit and Mockito
- Author
- Kaczanowski, Tomek
- Publisher
- Tomasz Kaczanowski
- Publication year
- 2013
- Condition
- Very Good
- Binding
- Paperback
- Language
- English
- ISBN 10
- 8393489393
- ISBN 13
- 9788393489398
- Item weight
- 857 grams
This book explains in detail how to implement unit tests using two very popular open source Java technologies: JUnit and Mockito. It presents a range of techniques necessary to write high quality unit tests - e.g. mocks, parametrized tests and matchers. It also discusses trade-offs related to the choices we have to make when dealing with some real-life code issues.
The book stresses the importance of writing readable and maintainable unit tests, and puts a lot of stress on code quality. It shows how to achieve testable code and to eliminate common mistakes by following the Test Driven Development approach. Every topic discussed in the book is illustrated with code examples, and each chapter is accompanied by some exercises.
By reading this book you will:
- Grasp the role and purpose of unit tests
- Write high-quality, readable and maintainable unit tests
- Learn how to use JUnit and Mockito (but also other useful tools)
- Avoid common pitfalls when writing unit tests
- Recognize bad unit tests, and fix them in no time
- Develop code following the Test Driven Development (TDD) approach
- Use mocks, stubs and test-spies intelligently
- Measure the quality of your tests using code coverage and mutation testing
- Learn how to improve your tests' code so it is an asset and not a burden
- Test collections, expected exceptions, time-dependent methods and much more
- Customize test reports so that they show you what you really need to know
- Master tools and techniques your team members have never even heard of (priceless!) :)
Nowadays every developer is expected to write unit tests. While simple in theory, in practice writing high-quality unit tests can turn out to be a real challenge. This book will help.
"Synopsis" may belong to another edition of this title.
About the Author
"About the title" may belong to another edition of this title.
WorldofBooks
Goring-By-Sea, WS, United Kingdom
AbeBooks seller since March 16, 2007
Shipping rates from United Kingdom to U.S.A.
| Item | 7 to 12 business days | 5 to 9 business days |
|---|---|---|
| First item | US$ 7.40 | US$ 15.86 |
Payment methods
Store description
In 2002, World of Books Group was founded on an ethos to do good, protect the planet and support charities by enabling more goods to be reused. Since then, we've grown into to a global company pioneering the circular economy. Today, we drive the circular economy through three re-commerce brands: - Wob: Through Wob, we sell. We provide affordable, preloved books and media to customers all over the world. A book leaves our collection of over seven million titles and begins a new chapter every two seconds, enabling more goods to be reused. - Ziffit: Through Ziffit, we buy. We give people around the world the opportunity to contribute to the circular economy, earn money and protect the planet, by trading their unwanted books and media. - Shopiago: Through Shopiago, we help others. By sharing the technology that has grown World of Books Group into the business it is today, we’re helping charities increase revenue and reduce waste through re-commerce.…
Specialty
COOKERY, RECYCLE, CHARITY, USED BOOKS, MODERN, HISTORY, CHILDRENS, FICTION, CHEAP BOOKS, NON -FICTIONSeller's business information
World of Books Ltd
Mulberry House, Woods Way Trading Estate
Goring-By-Sea, United Kingdom BN12 4QY
Terms of sale
WorldofBooks.com fully embraces the AbeBooks terms and conditions and we will do
what we can to resolve any issues.
Shipping terms
Orders ship within 2 business days. Shipping costs are based on books weighing 2.2 LB, or 1 KG. If your book order is heavy or oversized, we may contact you to let you know extra shipping is required.