Saved Bookmarks
| 1. |
How Can We Test Methods Individually Which Are Not Visible Or Declared Private? |
|
Answer» We can EITHER increase their visibility and MARK them with annotation @VisibleForTesting or can use REFLECTION to individually TEST those METHODS. We can either increase their visibility and mark them with annotation @VisibleForTesting or can use reflection to individually test those methods. |
|