parent
56b07e64d6
commit
71d2dfd33c
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue