parent
a0dda8322c
commit
e78efced36
|
@ -6,6 +6,7 @@ import com.dispose.common.ErrorCode;
|
|||
import com.dispose.mapper.DisposeTaskMapper;
|
||||
import com.dispose.pojo.entity.DisposeDevice;
|
||||
import com.dispose.pojo.po.ReturnStatus;
|
||||
import com.dispose.pojo.vo.common.DisposeCapacity;
|
||||
import com.dispose.pojo.vo.common.TaskInfoData;
|
||||
import com.dispose.pojo.vo.common.TaskInfoDetail;
|
||||
import com.dispose.pojo.vo.information.DisposeNodeData;
|
||||
|
@ -203,7 +204,7 @@ public class DeviceNodeInfoControllerSmokeTest extends InitTestEnvironment {
|
|||
}
|
||||
|
||||
/**
|
||||
* C 1 get node details normal test.
|
||||
* C 1 get Node Details Normal Test.
|
||||
*
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
|
@ -226,6 +227,23 @@ public class DeviceNodeInfoControllerSmokeTest extends InitTestEnvironment {
|
|||
|
||||
Assert.assertNotNull(rspInfo);
|
||||
Assert.assertNotEquals(rspInfo.getItems().size(), 0);
|
||||
|
||||
//DisposeDevice dev = disposeNodeManager.getDisposeDeviceById(1L);
|
||||
DisposeNodeData dpData = rspInfo.getItems().get(0);
|
||||
|
||||
Assert.assertNotNull(dpData);
|
||||
Assert.assertNotNull(dpData.getId());
|
||||
Assert.assertNotNull(dpData.getType());
|
||||
Assert.assertNotNull(dpData.getIp());
|
||||
Assert.assertNotNull(dpData.getStatus());
|
||||
Assert.assertNotNull(dpData.getMessage());
|
||||
Assert.assertNotNull(dpData.getCapacity());
|
||||
|
||||
DisposeCapacity taskInfoData = dpData.getCapacity().get(0);
|
||||
Assert.assertNotNull(taskInfoData);
|
||||
Assert.assertNotNull(taskInfoData.getType());
|
||||
Assert.assertNotNull(taskInfoData.getDisposeIp());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue