|
|
@ -23,15 +23,22 @@ import org.testng.annotations.Test;
|
|
|
|
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
|
|
|
|
import org.wso2.carbon.device.mgt.common.DeviceManagementException;
|
|
|
|
import org.wso2.carbon.device.mgt.common.DeviceManager;
|
|
|
|
import org.wso2.carbon.device.mgt.common.DeviceManager;
|
|
|
|
import org.wso2.carbon.device.mgt.common.spi.DeviceManagementService;
|
|
|
|
import org.wso2.carbon.device.mgt.common.spi.DeviceManagementService;
|
|
|
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.common.BaseDeviceManagementTest;
|
|
|
|
import org.wso2.carbon.device.mgt.core.common.TestDataHolder;
|
|
|
|
import org.wso2.carbon.device.mgt.core.common.TestDataHolder;
|
|
|
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.internal.DeviceManagementDataHolder;
|
|
|
|
|
|
|
|
import org.wso2.carbon.device.mgt.core.task.impl.DeviceTaskManagerServiceImpl;
|
|
|
|
|
|
|
|
import org.wso2.carbon.ntask.core.service.TaskService;
|
|
|
|
|
|
|
|
import org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl;
|
|
|
|
|
|
|
|
|
|
|
|
public class DeviceManagementRepositoryTests {
|
|
|
|
public class DeviceManagementRepositoryTests extends BaseDeviceManagementTest{
|
|
|
|
|
|
|
|
|
|
|
|
private DeviceManagementPluginRepository repository;
|
|
|
|
private DeviceManagementPluginRepository repository;
|
|
|
|
|
|
|
|
|
|
|
|
@BeforeClass
|
|
|
|
@BeforeClass
|
|
|
|
public void initRepository() {
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void init() throws Exception {
|
|
|
|
this.repository = new DeviceManagementPluginRepository();
|
|
|
|
this.repository = new DeviceManagementPluginRepository();
|
|
|
|
|
|
|
|
DeviceManagementDataHolder.getInstance().setDeviceTaskManagerService(new DeviceTaskManagerServiceImpl());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|