summaryrefslogtreecommitdiffstats
path: root/core/src/test/java/org/onap/aaf/cadi/util/JU_NetMask.java
diff options
context:
space:
mode:
authorsg481n <sg481n@att.com>2017-10-01 21:06:52 +0000
committersg481n <sg481n@att.com>2017-10-01 22:07:06 +0000
commitb5985fb5667b3ee9b6a4a0675fb57f55e7a288b7 (patch)
tree451b6146944e489348a922d552f150ff91e85480 /core/src/test/java/org/onap/aaf/cadi/util/JU_NetMask.java
parent7bc6ef245901a83da234c7765d76a7f7eb34540a (diff)
Improve code coverage for aaf cadi modules
Updated few testcases. Issue-ID: AAF-79 Change-Id: If0760b6f3e74d52fa5132224bf1e6f5e3099f0e4 Signed-off-by: sg481n <sg481n@att.com>
Diffstat (limited to 'core/src/test/java/org/onap/aaf/cadi/util/JU_NetMask.java')
-rw-r--r--core/src/test/java/org/onap/aaf/cadi/util/JU_NetMask.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/core/src/test/java/org/onap/aaf/cadi/util/JU_NetMask.java b/core/src/test/java/org/onap/aaf/cadi/util/JU_NetMask.java
index 14eab47..afed731 100644
--- a/core/src/test/java/org/onap/aaf/cadi/util/JU_NetMask.java
+++ b/core/src/test/java/org/onap/aaf/cadi/util/JU_NetMask.java
@@ -38,4 +38,28 @@ public class JU_NetMask {
String test = "1.2.3.4";
assertEquals(NetMask.derive(test.getBytes()), 0);
}
+
+ @Test
+ public void deriveTest3() {
+ String test = "1.2.4";
+ assertEquals(NetMask.derive(test.getBytes()), 0);
+ }
+
+ @Test
+ public void deriveTest4() {
+ String test = "1.3.4";
+ assertEquals(NetMask.derive(test.getBytes()), 0);
+ }
+
+ @Test
+ public void deriveTest5() {
+ String test = "2.3.4";
+ assertEquals(NetMask.derive(test.getBytes()), 0);
+ }
+
+ @Test
+ public void deriveTest6() {
+ String test = "3.4";
+ assertEquals(NetMask.derive(test.getBytes()), 0);
+ }
}