How to verify static method calls
22nd Oct 2022 by Aneesh Mistry

How to verify static method calls

Learn how you can verify that a static method has been called with PowerMock! This video will look at why Mockito is unable to verify static method calls. We will then review the PowerMock dependencies required, and write a method that verifies if a static method is called and the number of times it is invoked.

Link to source code: https://github.com/4neesh/YouTube-Channel/tree/main/VerifyStatic

YouTube video link


Share this post