Key Features
Book Description
What you will learn
- Create beautiful tests using Mockito
- Create mocks and spies in a number of ways
- Implement best practices to perform tests with Mockito
- Extend Mockito with other popular Javabased unit testing frameworks such as JUnit and PowerMock
- Stub behavior of mocks and spies
- Verify test doubles with Mockito
- Write good tests using Mockito
- Integrate Mockito with DI systems
- Compare Mockito to other mocking frameworks
- Verify the behavior of your system under test
Who this book is for
Table of Contents
- Getting Started With Mockito
- Creating mocks
- Creating spies
- Stubbing behaviour of mocks
- Stubbing behaviour of spies
- Verifying test doubles
- Verifying with arg matchers
- Refactoring with Mockito
- Mockito based tools
- Mocking libraries comparison
Loading...
Loading...
