you need to use a static mock. mockk is great for this and can be used with mockito. you can stub thread from the static getmainlooper() method using mockk ...
確定! 回上一頁