From 5cc58b51e85e7846cde9cae303ad8e87884535ca Mon Sep 17 00:00:00 2001 From: Jasintha Date: Sat, 14 Oct 2017 12:41:55 +0530 Subject: [PATCH] refactoring --- .../core/PolicyManagerServiceImplTest.java | 5 - .../core/mgt/impl/PolicyManagerImplTest.java | 146 ------------------ 2 files changed, 151 deletions(-) delete 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/PolicyManagerServiceImplTest.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java index 38500f2712..bf24d0e536 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java @@ -50,7 +50,6 @@ import org.wso2.carbon.policy.mgt.core.mock.TypeXDeviceManagementService; import org.wso2.carbon.policy.mgt.core.task.MonitoringTask; import org.wso2.carbon.policy.mgt.core.task.TaskScheduleService; import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; - import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; @@ -169,7 +168,6 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest { } } - @Test(description = "Get active policy but no any policy applied for device yet should be return PolicyManagement exception" + " caused by PolicyEvaluationException",dependsOnMethods = "addPolicy",expectedExceptions = PolicyManagementException.class) public void getActivePolicyForDeviceWithNoAppliedPolicy() throws Exception { @@ -202,8 +200,6 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest { } } - - @Test(dependsOnMethods = "activatePolicy") public void applyPolicy() throws PolicyManagementException, OperationManagementException { new DelegationTask().execute(); @@ -333,7 +329,6 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest { } } - @Test(description = "Get effective features but no any policy applied for device yet should be return FeatureManagement exception" + " caused by PolicyEvaluationException",dependsOnMethods = "addPolicy",expectedExceptions = FeatureManagementException.class) public void getEffectiveFeaturesForDeviceWithNoAppliedPolicy() throws Exception { 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 deleted file mode 100644 index b3a5475dfe..0000000000 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImplTest.java +++ /dev/null @@ -1,146 +0,0 @@ -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