Testing Private Functions? The Why and How!

Опубликовано: 23 Март 2026
на канале: Charfaoui Younes
1,889
37

💻 Join my new Refactoring Legacy Code course now: https://bit.ly/47dzTLT
📩 Sign up for my new newsletter here 👉 https://bit.ly/YCNewsletter102

✅ Join my Community on Discord:
  / discord  

In this video, you will learn why you SHOULDN'T test your private functions and the rationale behind it. Then we will see, in case you REALLY need it, how you can perform such tests with Reflection in Kotlin and Java.

👨🏽🏭 Who I am:
I'm Younes Charfaoui, a Junior Software Engineer and an Android Developer. I make videos about Android development, Technology, and productivity for software engineers.

😋 Be My Friend:
💻 GitHub - https://github.com/Younes-Charfaoui/
🐦 Twitter -   / charfaouiyounes  
📑 Medium -   / mxcsyounes  
📷 Instagram -   / charfaoui.younes  
🌍 My website - https://www.charfaouiyounes.com