From 2b0f9fcc71b64eceaf4577dbb8966370acca510c Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 16 Oct 2024 20:06:08 +0200 Subject: [PATCH] Fixed that quantity is now of type Double --- .../net/codinux/banking/client/fints4k/FinTs4kMapperTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FinTs4jBankingClient/src/commonTest/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapperTest.kt b/FinTs4jBankingClient/src/commonTest/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapperTest.kt index fc8f2594..d1d6f1f0 100644 --- a/FinTs4jBankingClient/src/commonTest/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapperTest.kt +++ b/FinTs4jBankingClient/src/commonTest/kotlin/net/codinux/banking/client/fints4k/FinTs4kMapperTest.kt @@ -12,7 +12,7 @@ class FinTs4kMapperTest { @Test fun getTotalBalance_TotalBalanceIsNull_CalculateByQuantityAndMarketValue() { - val holding = Holding("", null, null, null, 4, null, null, null, fints4kAmount("13.33")) + val holding = Holding("", null, null, null, 4.0, null, null, null, fints4kAmount("13.33")) val result = underTest.getTotalBalance(holding) @@ -21,7 +21,7 @@ class FinTs4kMapperTest { @Test fun getTotalCostPrice_TotalCostPriceIsNull_CalculateByQuantityAndAverageCostPrice() { - val holding = Holding("", null, null, null, 47, fints4kAmount("16.828"), null) + val holding = Holding("", null, null, null, 47.0, fints4kAmount("16.828"), null) val result = underTest.getTotalCostPrice(holding)