Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

587 B

Mocking

Mocking removes external dependencies from a unit test to create a sense of an entire controlled environment. The traditional method of mocks involves mocking all other classes that interact with the class we want to test. The common targets for mocking are:

  • Database connections
  • Web services
  • Slow Classes
  • Classes with side effects
  • Classes with non-deterministic behavior

Reference Resource Mockito - Mocking Framework for Java