Closed kelvinwatson closed 6 months ago
Workaround: Creating this stub implementation rather than a Mockito mock seems to work for now.
class Stub: ThreeDS2Service {
override fun initialize(
p0: Context?,
p1: ConfigParameters?,
p2: String?,
p3: UiCustomization?
): InitializeResult {
TODO("Not yet implemented")
}
override fun createTransaction(p0: String?, p1: String): TransactionResult {
TODO("Not yet implemented")
}
override fun cleanup(p0: Context?) {
TODO("Not yet implemented")
}
override fun getSDKVersion(): String {
TODO("Not yet implemented")
}
override fun getWarnings(): MutableList<Warning> {
TODO("Not yet implemented")
}
}
Hi @kelvinwatson, Thank you for reaching out and providing all the details. We will investigate further and let you know if there's something can be changed from our side to make it compatible with Mockito.
Hey @kelvinwatson, this issue happens due to our newest security measures. Unfortunately we can't find a way to make this work with Mockito for now. Since there's an easy work around by implementing a fake ThreeDS2Service we will close this issue now and if we ever find a fix for this we will update you.
Describe the bug Since upgrading to
com.adyen.threeds:adyen-3ds2:2.2.16
, we are no longer able to mock theThreeDS2Service
interface with Mockito. We are getting this error:To Reproduce Steps to reproduce the behavior:
Expected behavior We should be able to mock the ThreeDS2Service interface.
Desktop (please complete the following information):