aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-04-13 16:03:15 -0300
committerTorsten Grote <t@grobox.de>2020-04-13 16:03:15 -0300
commit10e49b74e29df50d8ac3e24438195063918ee265 (patch)
tree9c3fe05f542b25b53af9bd21ee9bbe433dbe09d8
parent489c480c636a641ee0fc5603b8bc196f3c75d3c6 (diff)
downloadtaler-android-10e49b74e29df50d8ac3e24438195063918ee265.tar.gz
taler-android-10e49b74e29df50d8ac3e24438195063918ee265.tar.bz2
taler-android-10e49b74e29df50d8ac3e24438195063918ee265.zip
[pos] Fix OrderManagerTest
-rw-r--r--merchant-terminal/src/test/java/net/taler/merchantpos/order/OrderManagerTest.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/merchant-terminal/src/test/java/net/taler/merchantpos/order/OrderManagerTest.kt b/merchant-terminal/src/test/java/net/taler/merchantpos/order/OrderManagerTest.kt
index cdb928a..d06428d 100644
--- a/merchant-terminal/src/test/java/net/taler/merchantpos/order/OrderManagerTest.kt
+++ b/merchant-terminal/src/test/java/net/taler/merchantpos/order/OrderManagerTest.kt
@@ -29,7 +29,9 @@ import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
import org.junit.runner.RunWith
+import org.robolectric.annotation.Config
+@Config(sdk = [28]) // API 29 needs at least Java 9
@RunWith(AndroidJUnit4::class)
class OrderManagerTest {
@@ -65,7 +67,7 @@ class OrderManagerTest {
{
"product_id": "631361561",
"description": "Chips",
- "price": "WRONGCURRENCY:1.00",
+ "price": "WRONGCUR:1.00",
"categories": [ 1 ],
"delivery_location": "cafeteria"
}
@@ -74,7 +76,7 @@ class OrderManagerTest {
)
val result = orderManager.onConfigurationReceived(json, "KUDOS")
val expectedStr = app.getString(
- R.string.config_error_currency, "Chips", "WRONGCURRENCY", "KUDOS"
+ R.string.config_error_currency, "Chips", "WRONGCUR", "KUDOS"
)
assertEquals(expectedStr, result)
}