From 28480452886ac2d29b73e7967f464357b709792a Mon Sep 17 00:00:00 2001 From: Jasintha Date: Sat, 14 Oct 2017 12:36:11 +0530 Subject: [PATCH] Coverting Exception paths of methods --- .../core/mgt/impl/PolicyManagerImplTest.java | 146 ++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImplTest.java diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImplTest.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImplTest.java new file mode 100644 index 0000000000..b3a5475dfe --- /dev/null +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImplTest.java @@ -0,0 +1,146 @@ +package org.wso2.carbon.policy.mgt.core.mgt.impl; + +import org.testng.annotations.Test; + +import static org.testng.Assert.*; + +/** + * Created by jasintha on 10/11/17. + */ +public class PolicyManagerImplTest { + + @Test + public void testAddPolicy() throws Exception { + + } + + @Test + public void testUpdatePolicy() throws Exception { + + } + + @Test + public void testUpdatePolicyPriorities() throws Exception { + + } + + @Test + public void testDeletePolicy() throws Exception { + + } + + @Test + public void testDeletePolicy1() throws Exception { + + } + + @Test + public void testActivatePolicy() throws Exception { + + } + + @Test + public void testInactivatePolicy() throws Exception { + + } + + @Test + public void testAddPolicyToDevice() throws Exception { + + } + + @Test + public void testAddPolicyToRole() throws Exception { + + } + + @Test + public void testAddPolicyToUser() throws Exception { + + } + + @Test + public void testGetPolicyByProfileID() throws Exception { + + } + + @Test + public void testGetPolicy() throws Exception { + + } + + @Test + public void testGetPolicies() throws Exception { + + } + + @Test + public void testGetPoliciesOfDevice() throws Exception { + + } + + @Test + public void testGetPoliciesOfDeviceType() throws Exception { + + } + + @Test + public void testGetPoliciesOfRole() throws Exception { + + } + + @Test + public void testGetPoliciesOfUser() throws Exception { + + } + + @Test + public void testGetPolicyAppliedDevicesIds() throws Exception { + + } + + @Test + public void testAddAppliedPolicyFeaturesToDevice() throws Exception { + + } + + @Test + public void testApplyChangesMadeToPolicies() throws Exception { + + } + + @Test + public void testAddAppliedPolicyToDevice() throws Exception { + + } + + @Test + public void testRemoveAppliedPolicyToDevice() throws Exception { + + } + + @Test + public void testCheckPolicyAvailable() throws Exception { + + } + + @Test + public void testSetPolicyApplied() throws Exception { + + } + + @Test + public void testGetPolicyCount() throws Exception { + + } + + @Test + public void testGetAppliedPolicyToDevice() throws Exception { + + } + + @Test + public void testGetAppliedPolicyIdsDeviceIds() throws Exception { + + } +} \ No newline at end of file