Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Background
Some time back Powermocks library was added with the intention of being able to test private methods in unit tests. Short coming of this is that does do it in a type safe way.
Solution
Existing TestNG framework supports VisibleForTesting annotation that allows for a type safe way to address this.
Short coming of this is that VisibleForTesting does is supported only for a given package.