Testing private methods with Powermock
19th Jul 2021 by Aneesh Mistry

Testing private methods

Learn how you can test private methods within your application using JUnit. First we explore how the reflection utils from the Java library can be used to control and invoke a private method. Second, we use the Powermock library to condense a large portion of the test to just a single line.

YouTube video link


Share this post