Packt is pleased to announce the release of its new book Instant Mock testing with PowerMock, a short and focused guide to enhance unit testing with PowerMock. The book features innovative ways to write unit test codes for static, final, and private methods. The book is available in all the popular electronic formats such as Amazon, Kindle, e-pub, and PDF.
Mocking is primarily used as unit testing. An object under test may have a lot of dependencies, thus to isolate the behaviour of that object, a mock object is used which simulates the behaviour of the test object. Mocking may be generally used when an object is impractical or impossible to incorporate in a unit test.
Mock Testing with PowerMock is a step-by-step guide that enables readers to write unit tests without any of the unwanted behaviour of codes and further explores the use of argument matchers in writing flexible tests. Programmers will learn how to use PowerMock to write unit tests and use mock policies to avoid writing codes repetitively.
This is a beginner’s guide, however, it can also be used by professionals, as the book covers both basic and advanced concepts. The book trains readers to write unit tests for almost any scenario and comprises of the different tricks used for coding. This guide is also suitable for readers with an intermediate knowledge of PowerMock.
Packt is one of the most prolific and fast-growing tech book publishers in the world. Originally focused on open source software, Packt books focuses on practicality, recognizing that readers are ultimately concerned with getting the job done. Packt’s digitally-focused business model allows to publish up-to-date books in very specific areas.
|Instant Mock Testing with PowerMock|
|Discover unit testing with PowerMock