Yet another blog post about a Mockito feature that we should rarely use: Mockito deep stubs. With this article, we'll explore how

Read More

Starting with Mockito version 3.5.0, we can now mock Java constructors with Mockito. This allows us to return a mock from every

Read More

When you start testing your Spring Boot application sooner or later you'll stumble over @Mock and @MockBean. Both annotations create mock objects

Read More

Want to start a religious discussion? Start asking your teammates whether or not you should mock static method calls. It's debatable if

Read More

With Spring Boot, you only need one dependency to have a solid testing infrastructure: Spring Boot Starter Test. Using this starter, you'll

Read More