This is an automated email from the ASF dual-hosted git repository. myrle pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/fineract-cn-deposit-account-management.git
commit f7762906ebad39d9ff132a704b1b91e3d048365f Author: mgeiss <mge...@mifos.org> AuthorDate: Wed Sep 6 11:40:34 2017 +0200 added cheque transaction to available transactions for customer --- .../src/main/java/io/mifos/deposit/TestProductInstance.java | 4 ++-- .../io/mifos/deposit/service/rest/ProductInstanceRestController.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/component-test/src/main/java/io/mifos/deposit/TestProductInstance.java b/component-test/src/main/java/io/mifos/deposit/TestProductInstance.java index d023ee9..cb875e5 100644 --- a/component-test/src/main/java/io/mifos/deposit/TestProductInstance.java +++ b/component-test/src/main/java/io/mifos/deposit/TestProductInstance.java @@ -322,8 +322,8 @@ public class TestProductInstance extends AbstractDepositAccountManagementTest { super.depositAccountManager.fetchPossibleTransactionTypes(productInstance.getCustomerIdentifier()); Assert.assertFalse(availableTransactionTypesAfterActivation.isEmpty()); - Assert.assertTrue(availableTransactionTypesAfterActivation.size() == 4); - final HashSet<String> expectedTransactionTypes = Sets.newHashSet("ACCC", "ACCT", "CDPT", "CWDL"); + Assert.assertTrue(availableTransactionTypesAfterActivation.size() == 5); + final HashSet<String> expectedTransactionTypes = Sets.newHashSet("ACCC", "ACCT", "CDPT", "CWDL", "CCHQ"); availableTransactionTypesAfterActivation.forEach(availableTransactionType -> expectedTransactionTypes.remove(availableTransactionType.getTransactionType()) ); diff --git a/service/src/main/java/io/mifos/deposit/service/rest/ProductInstanceRestController.java b/service/src/main/java/io/mifos/deposit/service/rest/ProductInstanceRestController.java index 205fd91..0d0deb4 100644 --- a/service/src/main/java/io/mifos/deposit/service/rest/ProductInstanceRestController.java +++ b/service/src/main/java/io/mifos/deposit/service/rest/ProductInstanceRestController.java @@ -121,6 +121,9 @@ public class ProductInstanceRestController { final AvailableTransactionType actionClose = new AvailableTransactionType(); actionClose.setTransactionType("ACCC"); availableTransactionTypes.add(actionClose); + final AvailableTransactionType actionCheque = new AvailableTransactionType(); + actionCheque.setTransactionType("CCHQ"); + availableTransactionTypes.add(actionCheque); } }); return ResponseEntity.ok(availableTransactionTypes); -- To stop receiving notification emails like this one, please contact my...@apache.org.