parent
1effae94f4
commit
e7b175d930
|
@ -2623,8 +2623,16 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment {
|
||||||
rspInfo.getItems().forEach(v -> {
|
rspInfo.getItems().forEach(v -> {
|
||||||
Assert.assertNotNull(v);
|
Assert.assertNotNull(v);
|
||||||
Assert.assertNotNull(v.getId());
|
Assert.assertNotNull(v.getId());
|
||||||
|
Assert.assertNotNull(v.getStatus());
|
||||||
|
Assert.assertNotNull(v.getMessage());
|
||||||
|
|
||||||
|
if(v.getStatus() == 19){
|
||||||
|
Assert.assertEquals(Long.valueOf(v.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHDEVICE.getCode()));
|
||||||
|
Assert.assertEquals(v.getMessage(), ErrorCode.ERR_NOSUCHDEVICE.getMsg());
|
||||||
|
}else if(v.getStatus() == 30){
|
||||||
Assert.assertEquals(Long.valueOf(v.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHTASK.getCode()));
|
Assert.assertEquals(Long.valueOf(v.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHTASK.getCode()));
|
||||||
Assert.assertEquals(v.getMessage(), ErrorCode.ERR_NOSUCHTASK.getMsg());
|
Assert.assertEquals(v.getMessage(), ErrorCode.ERR_NOSUCHTASK.getMsg());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue