REM:
1. 增加处置设备路由控制接口单元测试
This commit is contained in:
huangxin 2020-04-07 16:38:12 +08:00
parent 56b07e64d6
commit 71d2dfd33c
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
package com.cmcc.hy.phoenix.dptech;
import com.cmcc.hy.phoenix.common.ConstValue;
import com.cmcc.hy.phoenix.dispose.DeviceRouter;
import com.cmcc.hy.phoenix.dispose.DisposeProcess;
import com.dptech.umc.DetectionObjectDataForService;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
public class DPTechInterfaceTestCase {
@Test
public void getAllDetectionObjectFromUMC(){
try {
DisposeProcess dp = DeviceRouter.DeviceRouterFactory(ConstValue.DisposeDevice.DPTECH_UMC);
List<DetectionObjectDataForService> detDevs = dp.GetCleanDevices();
Assert.assertNotEquals(detDevs.size(), 0);
} catch (Exception ex){
Assert.assertTrue(false);
}
}
}