diff options
author | Torsten Grote <t@grobox.de> | 2020-08-03 14:37:37 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-08-03 14:37:37 -0300 |
commit | d3a035c59c508b7b0ef3c06a1b0f1f3c0a077bb8 (patch) | |
tree | d14dc0ad721a31909067b681cf76b064bf9caa6a /merchant-lib | |
parent | b67384912620d182d8b724bda0f4d24d1531e0c0 (diff) | |
download | taler-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.kt | 5 |
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")) } |