REM:
1. 获取节点信息接口添加字段后用例更新。
This commit is contained in:
wangyiyun 2020-09-22 16:02:55 +08:00
parent b27e0fdfca
commit 29eba3970e
2 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,8 @@ public class DisposeInfoControllerTest extends InitTestEnvironment {
Assert.assertNotNull(v.getNodeId()); Assert.assertNotNull(v.getNodeId());
Assert.assertNotNull(v.getTotalNetflow()); Assert.assertNotNull(v.getTotalNetflow());
Assert.assertNotNull(v.getOnlineDevices()); Assert.assertNotNull(v.getOnlineDevices());
Assert.assertNotNull(v.getTotalDevices());
Assert.assertTrue((v.getTotalDevices()-v.getOnlineDevices())>=0);
Assert.assertNotNull(v.getCapacityType()); Assert.assertNotNull(v.getCapacityType());
}); });
} }

View File

@ -63,6 +63,8 @@ public class P2Info {
Assert.assertNotNull(k.getCapacityType()); Assert.assertNotNull(k.getCapacityType());
Assert.assertNotEquals(k.getCapacityType().length, 0); Assert.assertNotEquals(k.getCapacityType().length, 0);
Assert.assertNotNull(k.getOnlineDevices()); Assert.assertNotNull(k.getOnlineDevices());
Assert.assertNotNull(k.getTotalDevices());
Assert.assertTrue((k.getTotalDevices()-k.getOnlineDevices())>=0);
}); });
}) })
.prepareCallback(P2Info::prepareDisposeDevice) .prepareCallback(P2Info::prepareDisposeDevice)