@ClassRule
public static HoverflyRule hoverflyRule = HoverflyRule.inSimulateMode(empty())
@Test
public void shouldCompletePurchaseWhenFraudCheckPasses() {
hoverflyRule.simulate(dsl(
service("www.payments.com")
.post("/api/bookings")
.body(json(new Payment("foo")))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017/03/27 13:33:39 [INFO] Go runtime version: go1.8 | |
2017/03/27 13:33:39 [INFO] CLI args: []string{"/Users/andrewmorgan1/IdeaProjects/application-infrastructure/application-cloud-terraform/environments/dev/terraform2", "apply"} | |
2017/03/27 13:33:39 [DEBUG] Detected home directory from env var: /Users/andrewmorgan1 | |
2017/03/27 13:33:39 [DEBUG] Detected home directory from env var: /Users/andrewmorgan1 | |
2017/03/27 13:33:39 [DEBUG] Attempting to open CLI config file: /Users/andrewmorgan1/.terraformrc | |
2017/03/27 13:33:39 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2017/03/27 13:33:39 [DEBUG] Detected home directory from env var: /Users/andrewmorgan1 | |
2017/03/27 13:33:39 [INFO] CLI command args: []string{"apply"} | |
2017/03/27 13:33:39 [DEBUG] command: loading backend config file: /Users/andrewmorgan1/IdeaProjects/application-infrastructure/application-cloud-terraform/environments/dev | |
2017/03/27 13:33:39 [TRACE] Preserving existing state lineage "421b3002-8727-41f0-a20a-f02842a5f701" |
@ClassRule
public static HoverflyRule hoverflyRule = HoverflyRule.inSimulateMode(empty())
public void shouldCompletePurchase() {
hoverflyRule.simulate(dsl(
service("www.payments.com")
.post("/api/bookings")
.body(json(new Payment("foo")))
.willReturn(success(json(new PaymentConfirmation(1)))),
I hereby claim:
- I am mogronalol on github.
- I am mogronalol (https://keybase.io/mogronalol) on keybase.
- I have a public key whose fingerprint is 684A 3417 49B6 7A93 CF1F 4A55 ACEC FA4D AA86 23AF
To claim this, I am signing this object: