aboutsummaryrefslogtreecommitdiff
path: root/merchant-lib
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-08-03 14:37:37 -0300
committerTorsten Grote <t@grobox.de>2020-08-03 14:37:37 -0300
commitd3a035c59c508b7b0ef3c06a1b0f1f3c0a077bb8 (patch)
treed14dc0ad721a31909067b681cf76b064bf9caa6a /merchant-lib
parentb67384912620d182d8b724bda0f4d24d1531e0c0 (diff)
downloadtaler-android-d3a035c59c508b7b0ef3c06a1b0f1f3c0a077bb8.tar.gz
taler-android-d3a035c59c508b7b0ef3c06a1b0f1f3c0a077bb8.tar.bz2
taler-android-d3a035c59c508b7b0ef3c06a1b0f1f3c0a077bb8.zip
[pos] fix tests in merchant-lib
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"))
}