summaryrefslogtreecommitdiffstats
path: root/ms/neng
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-09-19 01:22:06 +0530
committerSandeep Jha <sandeejh@in.ibm.com>2018-09-18 19:58:31 +0000
commit120824c9a2c31122ca62bfd05ec5a63ef4b0bc06 (patch)
tree3eba77d7edeca201dd5ef668d53abc87c9ec2cb2 /ms/neng
parent758bc233c125d2ffec0bf16618747af747aafa45 (diff)
added test case to PolicyPropertyMethodUtilsTest
to increase code coverage Issue-ID: CCSDK-552 Change-Id: I99e927f97e06be07d25a4a297cd129e1bbb01cda Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'ms/neng')
-rw-r--r--ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicyPropertyMethodUtilsTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicyPropertyMethodUtilsTest.java b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicyPropertyMethodUtilsTest.java
index f527b38b..f54e680e 100644
--- a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicyPropertyMethodUtilsTest.java
+++ b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicyPropertyMethodUtilsTest.java
@@ -4,6 +4,8 @@
* ================================================================================
* Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -21,6 +23,7 @@
package org.onap.ccsdk.apps.ms.neng.core.policy;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
import org.junit.Test;
@@ -34,5 +37,7 @@ public class PolicyPropertyMethodUtilsTest {
assertEquals("TRLAKDG", PolicyPropertyMethodUtils.substring("TRLAKDG", "-11"));
assertEquals("XYSZ1NNN", PolicyPropertyMethodUtils.toUpperCase("XySz1NNN"));
assertEquals("xysz1nnn", PolicyPropertyMethodUtils.toLowerCase("XySz1NNN"));
+ assertTrue(PolicyPropertyMethodUtils.genUuid() instanceof String);
+ assertTrue(PolicyPropertyMethodUtils.getIsoDateString() instanceof String);
}
}