From 6bc7f065ba8cf4c222445657193a7b9a46facdce Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Wed, 19 Jul 2017 21:10:20 +0100 Subject: [PATCH 1/7] Added test methods for remaining scheme adapter endpoints --- .../scheme/adapter/TestSchemeAdapter.java | 99 ++++++++++++++++++- .../test_data/healthMockResponse.json | 3 + .../test_data/ilpAddressMockResponse.json | 3 + .../test_data/paymentMockResponse.json | 7 ++ .../test_data/proxyPaymentRequest.json | 7 ++ 5 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 src/test/resources/test_data/healthMockResponse.json create mode 100644 src/test/resources/test_data/ilpAddressMockResponse.json create mode 100644 src/test/resources/test_data/paymentMockResponse.json create mode 100644 src/test/resources/test_data/proxyPaymentRequest.json diff --git a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java index 88aa6ca..81ba48a 100644 --- a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java +++ b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java @@ -59,7 +59,7 @@ public void testQuery() throws Exception { body("name", equalTo("alice")). body("balance", equalTo("1000.00")). body("currencyCode", equalTo("USD")). - body("currencySymbol", equalTo("$")). + body("currencySymbol", equalTo("$")). body("is_disabled", equalTo(false)). body("ledger", equalTo("http://ec2-35-166-180-190.us-west-2.compute.amazonaws.com:8088/ilp/ledger/v1")); @@ -120,6 +120,103 @@ public void testQuotes() throws Exception { @Ignore public void testPayments() throws Exception { + //TODO: update this method copied from testQuotes() for testPayments() + String paymentMockResponseJson = loadResourceAsString("test_data/paymentMockResponse.json"); + dfspQuoteService.stubFor(post(urlMatching("/v1/payments")).willReturn(aResponse().withBody(paymentMockResponseJson))); + +/* //From testQuotes() method + String ilpServiceMockCreateIPRMockJson = loadResourceAsString("test_data/ilpServiceCreateIPRMockResponse.json"); + ilpService.stubFor(post(urlMatching("/createIPR")).willReturn(aResponse().withHeader("Content-Type", "application/json").withBody(ilpServiceMockCreateIPRMockJson))); + + String ilpServiceMockQuoteIPRMockJson = loadResourceAsString("test_data/ilpServiceQuoteIPRMockResponse.json"); + ilpService.stubFor(get(urlPathMatching("/quoteIPR")).willReturn(aResponse().withHeader("Content-Type", "application/json").withBody(ilpServiceMockQuoteIPRMockJson))); + +*/ + + String proxyPaymentRequestJson = loadResourceAsString("test_data/proxyPaymentRequest.json"); + Response response = + given(). + contentType("application/json"). + body(proxyPaymentRequestJson). + when(). + post("http://localhost:8088/scheme/adapter/v1/payments"); + + logger.info("Response: "+response.asString()); + + assertEquals("paymentId","123456",(String)response.jsonPath().get("paymentId")); + assertEquals("connectorAccount","123456",(String)response.jsonPath().get("connectorAccount")); + assertEquals("status","1",(String)response.jsonPath().get("status")); + assertEquals("rejectionMessage","rejection message",(String)response.jsonPath().get("rejectionMessage")); + assertEquals("fulfillment","fulfillment",(String)response.jsonPath().get("fulfillment")); + + + } + + @Test + @Ignore + public void testIlpAddress() throws Exception { + + String ilpAddressResponseJson = loadResourceAsString("test_data/ilpAddressMockResponse.json"); + dfspAPIService.stubFor(get(urlPathMatching("/ilpAddress/.*")).willReturn(aResponse().withBody(ilpAddressResponseJson))); + + given(). + contentType("application/json"). + when(). + get("http://localhost:8088/scheme/adapter/v1/ilpAddress/123456"). + then(). + statusCode(200). + body("ilpAddress", equalTo("ok")); + + } + + + @Test + @Ignore + public void testNotifications() throws Exception { + + //TODO: update this method copied from testQuotes() for testNotifications() + String dfspQuoteResponseJson = loadResourceAsString("test_data/dfspQuoteMockResponse.json"); + dfspQuoteService.stubFor(post(urlMatching("/v1/quote")).willReturn(aResponse().withBody(dfspQuoteResponseJson))); + + String ilpServiceMockCreateIPRMockJson = loadResourceAsString("test_data/ilpServiceCreateIPRMockResponse.json"); + ilpService.stubFor(post(urlMatching("/createIPR")).willReturn(aResponse().withHeader("Content-Type", "application/json").withBody(ilpServiceMockCreateIPRMockJson))); + + String ilpServiceMockQuoteIPRMockJson = loadResourceAsString("test_data/ilpServiceQuoteIPRMockResponse.json"); + ilpService.stubFor(get(urlPathMatching("/quoteIPR")).willReturn(aResponse().withHeader("Content-Type", "application/json").withBody(ilpServiceMockQuoteIPRMockJson))); + + String proxyQuoteRequestJson = loadResourceAsString("test_data/proxyQuoteRequest.json"); + Response response = + given(). + contentType("application/json"). + body(proxyQuoteRequestJson). + when(). + post("http://localhost:8088/scheme/adapter/v1/quotes"); + + logger.info("Response: "+response.asString()); + + assertEquals("receiveAmount","10",(String)response.jsonPath().get("receiveAmount.amount")); + assertEquals("payeeFee","1",(String)response.jsonPath().get("payeeFee.amount")); + assertEquals("payeeCommission","1",(String)response.jsonPath().get("payeeCommission.amount")); + assertEquals("ipr","Aojf9Pq9_RKgnS3mzvYnZAXvJuvjWnw6r-JXdwitLmHygdQBgdEAAAAAAAAEsDZsZXZlbG9uZS5kZnNwMS5hbGljZS5TdXVPNUdhaDUxSXM3VzVyUkdXdVBnTWVSdGtKOXZPelGBj1BTSy8xLjAKTm9uY2U6IHRsNF93NVRfaGhLM0FFcWJ3Ukg3VVEKRW5jcnlwdGlvbjogbm9uZQpQYXltZW50LUlkOiAxMTBlYzU4YS1hMGYyLTRhYzQtODM5My1jODY2ZDgxM2I4ZDEKCkV4cGlyZXMtQXQ6IDIwMTctMDYtMjBUMDA6MDA6MDEuMDAwWgoKAA==",(String)response.jsonPath().get("ipr")); + assertEquals("expiresAt","2017-06-14T00:00:01.000Z",(String)response.jsonPath().get("expiresAt")); + + } + + @Test + @Ignore + public void testHealth() throws Exception { + + String healthMockResponseJson = loadResourceAsString("test_data/healthMockResponse.json"); + dfspAPIService.stubFor(get(urlPathMatching("/health")).willReturn(aResponse().withBody(healthMockResponseJson))); + + given(). + contentType("application/json"). + when(). + get("http://localhost:8088/scheme/adapter/v1/health"). + then(). + statusCode(200). + body("status", equalTo("ok")); + } } diff --git a/src/test/resources/test_data/healthMockResponse.json b/src/test/resources/test_data/healthMockResponse.json new file mode 100644 index 0000000..466162b --- /dev/null +++ b/src/test/resources/test_data/healthMockResponse.json @@ -0,0 +1,3 @@ +{ + "status" : "ok" +} \ No newline at end of file diff --git a/src/test/resources/test_data/ilpAddressMockResponse.json b/src/test/resources/test_data/ilpAddressMockResponse.json new file mode 100644 index 0000000..5707e9a --- /dev/null +++ b/src/test/resources/test_data/ilpAddressMockResponse.json @@ -0,0 +1,3 @@ +{ + "ilpAddress" : "ok" +} \ No newline at end of file diff --git a/src/test/resources/test_data/paymentMockResponse.json b/src/test/resources/test_data/paymentMockResponse.json new file mode 100644 index 0000000..e883a73 --- /dev/null +++ b/src/test/resources/test_data/paymentMockResponse.json @@ -0,0 +1,7 @@ +{ + "paymentId" : "123456", + "connectorAccount" : "123456", + "status" : "1", + "rejectionMessage" : "rejection message", + "fulfillment" : "fulfillment" +} \ No newline at end of file diff --git a/src/test/resources/test_data/proxyPaymentRequest.json b/src/test/resources/test_data/proxyPaymentRequest.json new file mode 100644 index 0000000..2102ae4 --- /dev/null +++ b/src/test/resources/test_data/proxyPaymentRequest.json @@ -0,0 +1,7 @@ +{ + "ipr" : "123456", + "sourceAmount" : "123.12", + "sourceAccount" : "123456", + "connectorAccount" : "123456", + "sourceExpiryDuration" : "30" +} \ No newline at end of file From 82ddd15b86f75badafc157ccea7ab10b72532552 Mon Sep 17 00:00:00 2001 From: Juan Correa Date: Wed, 19 Jul 2017 21:29:19 +0100 Subject: [PATCH 2/7] Added test methods for remaining scheme adapter endpoints --- .../java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java index 81ba48a..2d8a287 100644 --- a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java +++ b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java @@ -161,8 +161,9 @@ public void testIlpAddress() throws Exception { given(). contentType("application/json"). + queryParam("account", "123456"). when(). - get("http://localhost:8088/scheme/adapter/v1/ilpAddress/123456"). + get("http://localhost:8088/scheme/adapter/v1/ilpAddress"). then(). statusCode(200). body("ilpAddress", equalTo("ok")); From dbac9cc052db75e9da9a61c343377a7aa5c968d5 Mon Sep 17 00:00:00 2001 From: Brian Price Date: Thu, 20 Jul 2017 06:00:43 -0600 Subject: [PATCH 3/7] Test ILP Address is working with wiremock. --- .../scheme/adapter/TestSchemeAdapter.java | 38 ++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java index 2d8a287..95de44e 100644 --- a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java +++ b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java @@ -1,5 +1,14 @@ package com.l1p.interop.scheme.adapter; +import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; +import static com.github.tomakehurst.wiremock.client.WireMock.get; +import static com.github.tomakehurst.wiremock.client.WireMock.post; +import static com.github.tomakehurst.wiremock.client.WireMock.urlMatching; +import static com.github.tomakehurst.wiremock.client.WireMock.urlPathMatching; +import static io.restassured.RestAssured.given; +import static org.hamcrest.CoreMatchers.equalTo; +import static org.junit.Assert.assertEquals; + import org.junit.BeforeClass; import org.junit.Ignore; import org.junit.Rule; @@ -8,17 +17,15 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import com.github.tomakehurst.wiremock.WireMockServer; import com.github.tomakehurst.wiremock.junit.WireMockRule; import io.restassured.response.Response; -import static io.restassured.RestAssured.given; -import static org.junit.Assert.assertEquals; -import static com.github.tomakehurst.wiremock.client.WireMock.*; -import static org.hamcrest.CoreMatchers.equalTo; public class TestSchemeAdapter extends FunctionalTestCase { protected Logger logger = LoggerFactory.getLogger(getClass()); + private static WireMockServer wireMockServer; @Rule public WireMockRule mockReceiverSchemeAdapter = new WireMockRule(8090); @@ -26,6 +33,9 @@ public class TestSchemeAdapter extends FunctionalTestCase { @Rule public WireMockRule dfspAPIService = new WireMockRule(8010); + @Rule + public WireMockRule interopService = new WireMockRule(8088); + @Rule public WireMockRule dfspQuoteService = new WireMockRule(8020); @@ -117,12 +127,12 @@ public void testQuotes() throws Exception { } @Test - @Ignore public void testPayments() throws Exception { - - //TODO: update this method copied from testQuotes() for testPayments() + + String proxyPaymentRequestJson = loadResourceAsString("test_data/proxyPaymentRequest.json"); String paymentMockResponseJson = loadResourceAsString("test_data/paymentMockResponse.json"); - dfspQuoteService.stubFor(post(urlMatching("/v1/payments")).willReturn(aResponse().withBody(paymentMockResponseJson))); + interopService.stubFor(post(urlMatching("/payments.*")).willReturn(aResponse().withBody(paymentMockResponseJson).withStatus(201)).atPriority(2)); + /* //From testQuotes() method String ilpServiceMockCreateIPRMockJson = loadResourceAsString("test_data/ilpServiceCreateIPRMockResponse.json"); @@ -133,7 +143,7 @@ public void testPayments() throws Exception { */ - String proxyPaymentRequestJson = loadResourceAsString("test_data/proxyPaymentRequest.json"); + System.out.println("**** About to post payment under test *****"); Response response = given(). contentType("application/json"). @@ -141,6 +151,9 @@ public void testPayments() throws Exception { when(). post("http://localhost:8088/scheme/adapter/v1/payments"); + + System.out.println("****** Returned from post payments :: Response = " + response.asString()); + logger.info("Response: "+response.asString()); assertEquals("paymentId","123456",(String)response.jsonPath().get("paymentId")); @@ -153,15 +166,14 @@ public void testPayments() throws Exception { } @Test - @Ignore public void testIlpAddress() throws Exception { - + String ilpAddressResponseJson = loadResourceAsString("test_data/ilpAddressMockResponse.json"); - dfspAPIService.stubFor(get(urlPathMatching("/ilpAddress/.*")).willReturn(aResponse().withBody(ilpAddressResponseJson))); + ilpService.stubFor(get(urlMatching("/ilpAddress.*")).willReturn(aResponse().withBody(ilpAddressResponseJson).withStatus(200))); given(). contentType("application/json"). - queryParam("account", "123456"). + queryParam("account", "123459"). when(). get("http://localhost:8088/scheme/adapter/v1/ilpAddress"). then(). From 59b3c3ec8c6a693d85532f0269904feb934b3fa1 Mon Sep 17 00:00:00 2001 From: Brian Price Date: Fri, 21 Jul 2017 11:47:45 -0600 Subject: [PATCH 4/7] Added tests for notifications and payments --- src/main/app/scheme-adapter.xml | 5 +- .../scheme/adapter/TestSchemeAdapter.java | 60 +++++-------------- 2 files changed, 17 insertions(+), 48 deletions(-) diff --git a/src/main/app/scheme-adapter.xml b/src/main/app/scheme-adapter.xml index 7fda62f..13575cd 100644 --- a/src/main/app/scheme-adapter.xml +++ b/src/main/app/scheme-adapter.xml @@ -93,7 +93,7 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem - + @@ -218,7 +218,7 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem expression="#[sessionVars.originalQuoteRequestMap.get("amount").put("amount",sessionVars.destinationAmount); sessionVars.originalQuoteRequestMap]" doc:name="Update dfsp request with destination amount from ilp-service /quoteSourceAmount" /> - + @@ -302,6 +302,7 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem + diff --git a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java index 95de44e..736eb48 100644 --- a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java +++ b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java @@ -33,9 +33,6 @@ public class TestSchemeAdapter extends FunctionalTestCase { @Rule public WireMockRule dfspAPIService = new WireMockRule(8010); - @Rule - public WireMockRule interopService = new WireMockRule(8088); - @Rule public WireMockRule dfspQuoteService = new WireMockRule(8020); @@ -126,34 +123,22 @@ public void testQuotes() throws Exception { assertEquals("expiresAt","2017-06-14T00:00:01.000Z",(String)response.jsonPath().get("expiresAt")); } + @Test public void testPayments() throws Exception { String proxyPaymentRequestJson = loadResourceAsString("test_data/proxyPaymentRequest.json"); String paymentMockResponseJson = loadResourceAsString("test_data/paymentMockResponse.json"); - interopService.stubFor(post(urlMatching("/payments.*")).willReturn(aResponse().withBody(paymentMockResponseJson).withStatus(201)).atPriority(2)); - -/* //From testQuotes() method - String ilpServiceMockCreateIPRMockJson = loadResourceAsString("test_data/ilpServiceCreateIPRMockResponse.json"); - ilpService.stubFor(post(urlMatching("/createIPR")).willReturn(aResponse().withHeader("Content-Type", "application/json").withBody(ilpServiceMockCreateIPRMockJson))); - - String ilpServiceMockQuoteIPRMockJson = loadResourceAsString("test_data/ilpServiceQuoteIPRMockResponse.json"); - ilpService.stubFor(get(urlPathMatching("/quoteIPR")).willReturn(aResponse().withHeader("Content-Type", "application/json").withBody(ilpServiceMockQuoteIPRMockJson))); - -*/ + ilpService.stubFor(post(urlMatching("/payIPR")).willReturn(aResponse().withBody(paymentMockResponseJson).withStatus(201)).atPriority(2)); - System.out.println("**** About to post payment under test *****"); Response response = given(). contentType("application/json"). body(proxyPaymentRequestJson). when(). post("http://localhost:8088/scheme/adapter/v1/payments"); - - - System.out.println("****** Returned from post payments :: Response = " + response.asString()); - + logger.info("Response: "+response.asString()); assertEquals("paymentId","123456",(String)response.jsonPath().get("paymentId")); @@ -162,9 +147,9 @@ public void testPayments() throws Exception { assertEquals("rejectionMessage","rejection message",(String)response.jsonPath().get("rejectionMessage")); assertEquals("fulfillment","fulfillment",(String)response.jsonPath().get("fulfillment")); - } + @Test public void testIlpAddress() throws Exception { @@ -184,39 +169,22 @@ public void testIlpAddress() throws Exception { @Test - @Ignore public void testNotifications() throws Exception { - //TODO: update this method copied from testQuotes() for testNotifications() - String dfspQuoteResponseJson = loadResourceAsString("test_data/dfspQuoteMockResponse.json"); - dfspQuoteService.stubFor(post(urlMatching("/v1/quote")).willReturn(aResponse().withBody(dfspQuoteResponseJson))); - - String ilpServiceMockCreateIPRMockJson = loadResourceAsString("test_data/ilpServiceCreateIPRMockResponse.json"); - ilpService.stubFor(post(urlMatching("/createIPR")).willReturn(aResponse().withHeader("Content-Type", "application/json").withBody(ilpServiceMockCreateIPRMockJson))); + String notificationRequestBodyJson = loadResourceAsString("test_data/notificationMockRequestBody.json"); + + given(). + contentType("application/json"). + body(notificationRequestBodyJson). + when(). + post("http://localhost:8088/scheme/adapter/v1/notifications"). + then(). + statusCode(200); - String ilpServiceMockQuoteIPRMockJson = loadResourceAsString("test_data/ilpServiceQuoteIPRMockResponse.json"); - ilpService.stubFor(get(urlPathMatching("/quoteIPR")).willReturn(aResponse().withHeader("Content-Type", "application/json").withBody(ilpServiceMockQuoteIPRMockJson))); - - String proxyQuoteRequestJson = loadResourceAsString("test_data/proxyQuoteRequest.json"); - Response response = - given(). - contentType("application/json"). - body(proxyQuoteRequestJson). - when(). - post("http://localhost:8088/scheme/adapter/v1/quotes"); - - logger.info("Response: "+response.asString()); - - assertEquals("receiveAmount","10",(String)response.jsonPath().get("receiveAmount.amount")); - assertEquals("payeeFee","1",(String)response.jsonPath().get("payeeFee.amount")); - assertEquals("payeeCommission","1",(String)response.jsonPath().get("payeeCommission.amount")); - assertEquals("ipr","Aojf9Pq9_RKgnS3mzvYnZAXvJuvjWnw6r-JXdwitLmHygdQBgdEAAAAAAAAEsDZsZXZlbG9uZS5kZnNwMS5hbGljZS5TdXVPNUdhaDUxSXM3VzVyUkdXdVBnTWVSdGtKOXZPelGBj1BTSy8xLjAKTm9uY2U6IHRsNF93NVRfaGhLM0FFcWJ3Ukg3VVEKRW5jcnlwdGlvbjogbm9uZQpQYXltZW50LUlkOiAxMTBlYzU4YS1hMGYyLTRhYzQtODM5My1jODY2ZDgxM2I4ZDEKCkV4cGlyZXMtQXQ6IDIwMTctMDYtMjBUMDA6MDA6MDEuMDAwWgoKAA==",(String)response.jsonPath().get("ipr")); - assertEquals("expiresAt","2017-06-14T00:00:01.000Z",(String)response.jsonPath().get("expiresAt")); - } + @Test - @Ignore public void testHealth() throws Exception { String healthMockResponseJson = loadResourceAsString("test_data/healthMockResponse.json"); From f8bae60ae46922c17b51679cb0e3c20034ff83d8 Mon Sep 17 00:00:00 2001 From: Brian Price Date: Fri, 21 Jul 2017 11:48:43 -0600 Subject: [PATCH 5/7] added notificationMockRequestBody file --- src/test/resources/test_data/notificationMockRequestBody.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/test/resources/test_data/notificationMockRequestBody.json diff --git a/src/test/resources/test_data/notificationMockRequestBody.json b/src/test/resources/test_data/notificationMockRequestBody.json new file mode 100644 index 0000000..24bc5f8 --- /dev/null +++ b/src/test/resources/test_data/notificationMockRequestBody.json @@ -0,0 +1 @@ +{ "ipr": "some ipr string","paymentId":"string","destinationAccount":"string","status":"prepared","fulfillment":"string" } \ No newline at end of file From 8bfcf7228403d14aee732748064d54acfa929779 Mon Sep 17 00:00:00 2001 From: Brian Price Date: Tue, 25 Jul 2017 14:33:56 -0600 Subject: [PATCH 6/7] added wiremock for testNotifications --- .../com/l1p/interop/scheme/adapter/TestSchemeAdapter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java index 736eb48..d8d91fa 100644 --- a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java +++ b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java @@ -38,6 +38,9 @@ public class TestSchemeAdapter extends FunctionalTestCase { @Rule public WireMockRule ilpService = new WireMockRule(3045); + + @Rule + public WireMockRule notificationsService = new WireMockRule(8088); @Override @@ -172,7 +175,8 @@ public void testIlpAddress() throws Exception { public void testNotifications() throws Exception { String notificationRequestBodyJson = loadResourceAsString("test_data/notificationMockRequestBody.json"); - + notificationsService.stubFor(post(urlPathMatching("/scheme/adapter/v1/notifications")).willReturn(aResponse().withStatus(200))); + given(). contentType("application/json"). body(notificationRequestBodyJson). From d49aa19d7ce787e27535a1464199b2e30a17ecb8 Mon Sep 17 00:00:00 2001 From: Brian Price Date: Tue, 25 Jul 2017 20:09:00 -0600 Subject: [PATCH 7/7] Changed testNotifications to be a negative test. --- .../java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java index d8d91fa..47f7462 100644 --- a/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java +++ b/src/test/java/com/l1p/interop/scheme/adapter/TestSchemeAdapter.java @@ -175,7 +175,7 @@ public void testIlpAddress() throws Exception { public void testNotifications() throws Exception { String notificationRequestBodyJson = loadResourceAsString("test_data/notificationMockRequestBody.json"); - notificationsService.stubFor(post(urlPathMatching("/scheme/adapter/v1/notifications")).willReturn(aResponse().withStatus(200))); + notificationsService.stubFor(post(urlPathMatching("/scheme/adapter/v1/notificationsXXX")).willReturn(aResponse().withStatus(500))); given(). contentType("application/json").