You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a local implementation of the Sift client and I'm adding integration tests. My (simplified) interface is
interface SiftPPService {
fun createOrder(event: SiftPPCreateOrderEvent): EventResponse
}
And this interface has both a local and a remote implementation.
In the Local implementation I have to construct a com.siftscience.EventResponse object but this has a protected constructor so cannot be done. This is required in order to test scenario like 'what happens if the API returns a very specific fraud score or a specific error code'
Is there another way to build a EventResponse in a test without performing a remote call to the Sift API?
Note that EventResponseBody can be constructed but EventResponse not.
The text was updated successfully, but these errors were encountered:
I'm writing a local implementation of the Sift client and I'm adding integration tests. My (simplified) interface is
And this interface has both a local and a remote implementation.
In the Local implementation I have to construct a
com.siftscience.EventResponse
object but this has a protected constructor so cannot be done. This is required in order to test scenario like 'what happens if the API returns a very specific fraud score or a specific error code'Is there another way to build a EventResponse in a test without performing a remote call to the Sift API?
Note that
EventResponseBody
can be constructed but EventResponse not.The text was updated successfully, but these errors were encountered: