diff --git a/src/test/java/com/dispose/test/dev/controller/DisposeInfoControllerTest.java b/src/test/java/com/dispose/test/dev/controller/DisposeInfoControllerTest.java index d028749b..708940a1 100644 --- a/src/test/java/com/dispose/test/dev/controller/DisposeInfoControllerTest.java +++ b/src/test/java/com/dispose/test/dev/controller/DisposeInfoControllerTest.java @@ -101,6 +101,8 @@ public class DisposeInfoControllerTest extends InitTestEnvironment { Assert.assertNotNull(v.getNodeId()); Assert.assertNotNull(v.getTotalNetflow()); Assert.assertNotNull(v.getOnlineDevices()); + Assert.assertNotNull(v.getTotalDevices()); + Assert.assertTrue((v.getTotalDevices()-v.getOnlineDevices())>=0); Assert.assertNotNull(v.getCapacityType()); }); } diff --git a/src/test/java/com/dispose/test/testcase/qa/v200/P2Info.java b/src/test/java/com/dispose/test/testcase/qa/v200/P2Info.java index 49c0d80b..4d9c5ebd 100644 --- a/src/test/java/com/dispose/test/testcase/qa/v200/P2Info.java +++ b/src/test/java/com/dispose/test/testcase/qa/v200/P2Info.java @@ -63,6 +63,8 @@ public class P2Info { Assert.assertNotNull(k.getCapacityType()); Assert.assertNotEquals(k.getCapacityType().length, 0); Assert.assertNotNull(k.getOnlineDevices()); + Assert.assertNotNull(k.getTotalDevices()); + Assert.assertTrue((k.getTotalDevices()-k.getOnlineDevices())>=0); }); }) .prepareCallback(P2Info::prepareDisposeDevice)