How to test private val callback in kotlin using mockito and robolectic?
I have a private val callback, using reflection I can take the value but how to access and test the override functions and inside the functions handler is present. So here I want to test the override and handler. Using mockito and roboelctric.
private val mMediaControllerCallback: MediaControllerCompat.Callback =
object : MediaControllerCompat.Callback() {
override fun onPlaybackStateChanged(state: PlaybackStateCompat) {
mHandler!!.post {
if (state !=...