Practical Unit Testing with JUnit and Mockito

$7.49
1 in stock

Pickup available at Bookstore (Hours: Open Everyday, 8 am to 4 pm)

Usually ready in 24 hours


About this item

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.
ASIN: 8393489393
VSKU: DBV.8393489393.G
Condition: Good
Author/Artist:Kaczanowski, Tomek
Binding: Paperback
Note: Any images shown are stock photographs and product may differ from what is shown.
Condition Notes: Gently used with minimal wear on the corners and cover. A few pages may contain light highlighting or writing, but the text remains fully legible. Dust jacket may be missing, and supplemental materials like CDs or codes may not be included. May be ex-library with library markings. Ships promptly!
Note on Condition

Most of the items in our store are used. The item's condition grade is indicated near the bottom of the product description. If you have any questions regarding specific details of an item, please contact us. We use the following rating scale:

Books:

  • Used - Very Good: Item may have minor cosmetic defects (marks, wears, cuts, bends, crushes) on the cover, spine, pages or dust cover. Shrink wrap, dust covers, or boxed set case may be missing. Item may contain remainder marks on outside edges, which should be noted in listing comments. Item may be missing bundled media. 
  • Used - Good: All pages and cover are intact (including the dust cover, if applicable). Spine may show signs of wear. Pages may include limited notes and highlighting. Gently used ex-library books with library stickers and markings may be classified as good. Shrink wrap, dust covers, or boxed set case may be missing. Item may be missing bundled media. 
  • Used - Acceptable: All pages and the cover are intact, but shrink wrap, dust covers, or boxed set case may be missing. Pages may include limited notes, highlighting, or minor water damage but the text is readable. Item may but the dust cover may be missing. Pages may include limited notes and highlighting, but the text cannot be obscured or unreadable.

CDs/DVDs/Discs:

  • Used - Good: Case may be damaged or come repackaged. Disc may have up to 1.5cm marking but is in great working condition. 
  • Used - Acceptable: A product with extensive external signs of wear, but is in great working condition. The case may be damaged. The cover art, liner, notes, or other inclusion may be marked, or one or all of these items may be missing.
Shipping & Returns

Shipping: Most orders are shipped within 2 business days.

Returns: We want you to be completely satisfied with your purchase. If you're not, you can return your order within 30 days of purchase for a refund.

Fast Shipping

Orders are typically processed and shipped within 2 days

Competitive Pricing

We've streamlined our processes to provide competitive prices on all our titles

Exceptional Customer Service

Our dedicated team is committed to providing outstanding customer support