refactoring

merge-requests/1/head
Jasintha 7 years ago
parent 2848045288
commit 5cc58b51e8

@ -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.MonitoringTask;
import org.wso2.carbon.policy.mgt.core.task.TaskScheduleService; import org.wso2.carbon.policy.mgt.core.task.TaskScheduleService;
import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants; import org.wso2.carbon.policy.mgt.core.util.PolicyManagementConstants;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; 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" + @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) " caused by PolicyEvaluationException",dependsOnMethods = "addPolicy",expectedExceptions = PolicyManagementException.class)
public void getActivePolicyForDeviceWithNoAppliedPolicy() throws Exception { public void getActivePolicyForDeviceWithNoAppliedPolicy() throws Exception {
@ -202,8 +200,6 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest {
} }
} }
@Test(dependsOnMethods = "activatePolicy") @Test(dependsOnMethods = "activatePolicy")
public void applyPolicy() throws PolicyManagementException, OperationManagementException { public void applyPolicy() throws PolicyManagementException, OperationManagementException {
new DelegationTask().execute(); 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" + @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) " caused by PolicyEvaluationException",dependsOnMethods = "addPolicy",expectedExceptions = FeatureManagementException.class)
public void getEffectiveFeaturesForDeviceWithNoAppliedPolicy() throws Exception { public void getEffectiveFeaturesForDeviceWithNoAppliedPolicy() throws Exception {

@ -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 {
}
}
Loading…
Cancel
Save