Title: GitHub · Where software is built
Open Graph Title: SiftScience/sift-java
X Title: SiftScience/sift-java
Description: Sift API (Java client). Contribute to SiftScience/sift-java development by creating an account on GitHub.
Open Graph Description: Sift API (Java client). Contribute to SiftScience/sift-java development by creating an account on GitHub.
X Description: Sift API (Java client). Contribute to SiftScience/sift-java development by creating an account on GitHub.
Opengraph URL: https://github.com/SiftScience/sift-java
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"EventResponse cannot be constructed during tests","articleBody":"I'm writing a local implementation of the Sift client and I'm adding integration tests. My (simplified) interface is\r\n\r\n```\r\ninterface SiftPPService {\r\n fun createOrder(event: SiftPPCreateOrderEvent): EventResponse\r\n}\r\n```\r\nAnd this interface has both a local and a remote implementation.\r\nIn 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'\r\n\r\nIs there another way to build a EventResponse in a test without performing a remote call to the Sift API?\r\nNote that `EventResponseBody` can be constructed but EventResponse not.","author":{"url":"https://github.com/lorenzo-bc","@type":"Person","name":"lorenzo-bc"},"datePublished":"2020-08-18T18:26:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/57/sift-java/issues/57"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:380ba765-445a-bc72-b545-31e07d37a171 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E576:C570D:194A4D2:232EDF5:698CC9A0 |
| html-safe-nonce | ccbc6200a53ad8eb5c999385e53be975aa697d8324915281b5bc47f9d5c0ca0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTc2OkM1NzBEOjE5NEE0RDI6MjMyRURGNTo2OThDQzlBMCIsInZpc2l0b3JfaWQiOiIyOTYxODk3ODYwOTk0MjIyNDk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 98a77bb16f6a4e781132feb7c969a1de60f1ea5e9c911af1471fdb9abf702c92 |
| hovercard-subject-tag | repository:69907865 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/SiftScience/sift-java/issues/57 |
| twitter:image | https://opengraph.githubassets.com/bf80d54085e83dd2fc48cfd33969bbedbd6873769cb648ed9bc8ecf9666b0519/SiftScience/sift-java |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf80d54085e83dd2fc48cfd33969bbedbd6873769cb648ed9bc8ecf9666b0519/SiftScience/sift-java |
| og:image:alt | Sift API (Java client). Contribute to SiftScience/sift-java development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4 |
| turbo-cache-control | no-cache |
| go-import | github.com/SiftScience/sift-java git https://github.com/SiftScience/sift-java.git |
| octolytics-dimension-user_id | 836132 |
| octolytics-dimension-user_login | SiftScience |
| octolytics-dimension-repository_id | 69907865 |
| octolytics-dimension-repository_nwo | SiftScience/sift-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 69907865 |
| octolytics-dimension-repository_network_root_nwo | SiftScience/sift-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3d444f0a47beeeac94cddbb51c91ab408befe8d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width