From 549e4a784c3403cb40b0e88669d01e51f68b25ed Mon Sep 17 00:00:00 2001 From: geethkokila Date: Mon, 15 Jun 2015 13:27:49 +0530 Subject: [PATCH] Fixing issues --- .../policy/mgt/core/util/PolicyCreator.java | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/PolicyCreator.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/PolicyCreator.java index 24d0e2d444..811f482bb9 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/PolicyCreator.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/util/PolicyCreator.java @@ -87,14 +87,7 @@ public class PolicyCreator { policy.setOwnershipType("COPE"); policy.setPolicyCriterias(criteria); -// -// policy.setLatitude("6.927079"); -// policy.setLongitude("79.861243"); -/* DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd "); - java.util.Date date = new java.util.Date(); - - policy.setStartDate(new java.sql.Timestamp(date.getDate()));*/ return policy; } @@ -116,13 +109,6 @@ public class PolicyCreator { policy.setCompliance("ENFORCE"); policy.setOwnershipType("BYOD"); -// List users = new ArrayList(); -// users.add("Geeth"); -// users.add("Manoj"); -// users.add("Milan"); -// users.add("Dulitha"); -// -// policy.setUsers(users); PolicyCriterion criterion = new PolicyCriterion(); @@ -141,10 +127,6 @@ public class PolicyCreator { policy.setPolicyCriterias(criteria); -/* DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd "); - java.util.Date date = new java.util.Date(); - - policy.setStartDate(new java.sql.Timestamp(date.getDate()));*/ return policy; } @@ -184,7 +166,7 @@ public class PolicyCreator { prop.put("End_time", "4.00 PM"); criterion.setProperties(prop); - criterion.setName("LOCATIONGGGGG"); + criterion.setName("LOCATION"); List criteria = new ArrayList(); @@ -193,13 +175,6 @@ public class PolicyCreator { policy.setPolicyCriterias(criteria); -// policy.setLatitude("6.927079"); -// policy.setLongitude("79.861243"); - -/* DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd "); - java.util.Date date = new java.util.Date(); - - policy.setStartDate(new java.sql.Timestamp(date.getDate()));*/ return policy; }