Practical Unit Testing with JUnit and Mockito

This book explains in detail how to implement unit tests using two very popular open source Java...
€62,54 EUR
€62,54 EUR
SKU: 9788395185144
Product Type: Books
Please hurry! Only 225 left in stock
Author: Tomek Kaczanowski
Format: Paperback
Language: English
Subtotal: €62,54
10 customers are viewing this product
Practical Unit Testing with JUnit and Mockito by Kaczanowski, Tomek

Practical Unit Testing with JUnit and Mockito

€62,54

Practical Unit Testing with JUnit and Mockito

€62,54
Author: Tomek Kaczanowski
Format: Paperback
Language: English

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.



Author: Tomek Kaczanowski
Publisher: Tomasz Kaczanowski
Published: 11/25/2019
Pages: 386
Binding Type: Paperback
Weight: 1.46lbs
Size: 9.25h x 7.52w x 0.80d
ISBN: 9788395185144

This title is not returnable

Returns Policy

You may return most new, unopened items within 30 days of delivery for a full refund. We'll also pay the return shipping costs if the return is a result of our error (you received an incorrect or defective item, etc.).

You should expect to receive your refund within four weeks of giving your package to the return shipper, however, in many cases you will receive a refund more quickly. This time period includes the transit time for us to receive your return from the shipper (5 to 10 business days), the time it takes us to process your return once we receive it (3 to 5 business days), and the time it takes your bank to process our refund request (5 to 10 business days).

If you need to return an item, simply login to your account, view the order using the "Complete Orders" link under the My Account menu and click the Return Item(s) button. We'll notify you via e-mail of your refund once we've received and processed the returned item.

Shipping

We can ship to virtually any address in the world. Note that there are restrictions on some products, and some products cannot be shipped to international destinations.

When you place an order, we will estimate shipping and delivery dates for you based on the availability of your items and the shipping options you choose. Depending on the shipping provider you choose, shipping date estimates may appear on the shipping quotes page.

Please also note that the shipping rates for many items we sell are weight-based. The weight of any such item can be found on its detail page. To reflect the policies of the shipping companies we use, all weights will be rounded up to the next full pound.

Related Products

Recently Viewed Products