From 4975c1c18f6c743a791d5bf16ab15e158564340a Mon Sep 17 00:00:00 2001 From: Keith Woodlock Date: Fri, 15 Nov 2013 15:15:57 +0000 Subject: [PATCH] Fix group test that uses hard coded date for activation date when no date is passed. submitted on date now also must be catered for. --- .../org/mifosplatform/integrationtests/common/GroupHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mifosng-provider/src/integrationTest/java/org/mifosplatform/integrationtests/common/GroupHelper.java b/mifosng-provider/src/integrationTest/java/org/mifosplatform/integrationtests/common/GroupHelper.java index e58b62600..ce81e2ee7 100644 --- a/mifosng-provider/src/integrationTest/java/org/mifosplatform/integrationtests/common/GroupHelper.java +++ b/mifosng-provider/src/integrationTest/java/org/mifosplatform/integrationtests/common/GroupHelper.java @@ -74,13 +74,14 @@ public class GroupHelper { map.put("officeId", "1"); map.put("name", randomNameGenerator("Group_Name_", 5)); map.put("externalId", randomIDGenerator("ID_", 7)); - if (active == true) { + if (active) { map.put("active", "true"); map.put("dateFormat", "dd MMMM yyyy"); map.put("locale", "en"); map.put("activationDate", activationDate); } else { map.put("active", "false"); + map.put("submittedOnDate", "04 March 2011"); } System.out.println("map : " + map);