I have an Base64Util class with amongst others an extension function decodeBase64ToByteArray
:
class Base64Util {
companion object {
fun String.decodeBase64ToByteArray(): ByteArray {
return Base64.getUrlDecoder().decode(this)
}
}
}
Now I would like to test my Base64Util
via Base64IUtilTest
. I can access non extension functions of course, but how can I access/test the String.decodeBase64ToByteArray()
from Base64UtilTest
?