aboutsummaryrefslogtreecommitdiff
path: root/merchant-lib
diff options
context:
space:
mode:
Diffstat (limited to 'merchant-lib')
-rw-r--r--merchant-lib/src/test/java/net/taler/merchantlib/MerchantApiTest.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/merchant-lib/src/test/java/net/taler/merchantlib/MerchantApiTest.kt b/merchant-lib/src/test/java/net/taler/merchantlib/MerchantApiTest.kt
index deed81e..437697b 100644
--- a/merchant-lib/src/test/java/net/taler/merchantlib/MerchantApiTest.kt
+++ b/merchant-lib/src/test/java/net/taler/merchantlib/MerchantApiTest.kt
@@ -65,6 +65,7 @@ class MerchantApiTest {
fulfillmentUrl = "http://example.org",
products = listOf(product)
)
+ val request = PostOrderRequest(contractTerms)
val contractTermsJson = """
{
"order": {
@@ -88,7 +89,7 @@ class MerchantApiTest {
) {
"""{"order_id": "test"}"""
}
- api.postOrder(merchantConfig, contractTerms).assertSuccess {
+ api.postOrder(merchantConfig, request).assertSuccess {
assertEquals(PostOrderResponse("test"), it)
}
@@ -101,7 +102,7 @@ class MerchantApiTest {
"hint": "merchant instance unknown"
}"""
}
- api.postOrder(merchantConfig, contractTerms).assertFailure {
+ api.postOrder(merchantConfig, request).assertFailure {
assertTrue(it.contains("2000"))
assertTrue(it.contains("merchant instance unknown"))
}