How do I test a class that has private methods, fields or inner classes?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=vYjK7zH2t0E



Duration: 5:04
0 views
0


How do I test a class that has private methods, fields or inner classes?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/545127)Raedwald |
(stackoverflow.com/users/3087)Cem Catikkas |
(stackoverflow.com/posts/34586/revisions)Sir Rippov the Maple |
(stackoverflow.com/users/5314)Jay Bazuzi |
(stackoverflow.com/users/128285)Jon |
(stackoverflow.com/users/2697)Iker Jimenez |
A special thanks goes out to the (https://stackoverflow.com/questions/34571/how-do-i-test-a-class-that-has-private-methods-fields-or-inner-classes)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

unit-testing junit tdd java







Tags:
unit-testing
junit
tdd
java