ghedeon
06/10/2018, 5:41 PMHtml.fromHtml()
?oleksiyp
06/10/2018, 9:16 PMghedeon
06/10/2018, 10:10 PMmockk just allow to mock java static methods
android.text.Html.fromHtml()
is a java class in android SDK. To be able to mock it, I wrapped it into a kotlin extension function and mocked that function with mockkStatic. Works perfectly, thanks for that! Just to clarify, the question remains, is it possible to mock the #fromHtml()
directly, assuming it's not an extension and comes from java?oleksiyp
06/11/2018, 4:17 AM