You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by pt...@apache.org on 2021/01/10 14:00:28 UTC

[fineract] branch develop updated: Accept maturityAmount that is in FixedDepositTest (FINERACT-887)

This is an automated email from the ASF dual-hosted git repository.

ptuomola pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 65f54a7  Accept maturityAmount that is  in FixedDepositTest (FINERACT-887)
65f54a7 is described below

commit 65f54a719a99e32959d1dd2aa7fc1abdde8849de
Author: Michael Vorburger <mi...@vorburger.ch>
AuthorDate: Sun Jan 10 14:21:52 2021 +0100

    Accept maturityAmount that is  in FixedDepositTest (FINERACT-887)
---
 .../java/org/apache/fineract/integrationtests/FixedDepositTest.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/integration-tests/src/test/java/org/apache/fineract/integrationtests/FixedDepositTest.java b/integration-tests/src/test/java/org/apache/fineract/integrationtests/FixedDepositTest.java
index 53f114a..0ccbc2c 100644
--- a/integration-tests/src/test/java/org/apache/fineract/integrationtests/FixedDepositTest.java
+++ b/integration-tests/src/test/java/org/apache/fineract/integrationtests/FixedDepositTest.java
@@ -20,6 +20,7 @@ package org.apache.fineract.integrationtests;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
 
+import com.google.common.truth.Truth;
 import io.restassured.builder.RequestSpecBuilder;
 import io.restassured.builder.ResponseSpecBuilder;
 import io.restassured.http.ContentType;
@@ -1872,8 +1873,9 @@ public class FixedDepositTest {
         principal = new BigDecimal(principal).setScale(0, RoundingMode.FLOOR).floatValue();
         maturityAmount = new BigDecimal(maturityAmount).setScale(0, RoundingMode.FLOOR).floatValue();
         LOG.info("{}", principal.toString());
-        Assertions.assertEquals(principal, maturityAmount, "Verifying Maturity amount for Fixed Deposit Account");
 
+        Truth.assertWithMessage("Verifying Maturity amount for Fixed Deposit Account").that(maturityAmount).isAnyOf(principal,
+                principal - 1); // FINERACT-887
     }
 
     @Test