added test case to PolicyPropertyMethodUtilsTest 57/67457/3
authorSandeep J <sandeejh@in.ibm.com>
Tue, 18 Sep 2018 19:52:06 +0000 (01:22 +0530)
committerSandeep Jha <sandeejh@in.ibm.com>
Tue, 18 Sep 2018 19:58:31 +0000 (19:58 +0000)
to increase code coverage

Issue-ID: CCSDK-552
Change-Id: I99e927f97e06be07d25a4a297cd129e1bbb01cda
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicyPropertyMethodUtilsTest.java

index f527b38..f54e680 100644 (file)
@@ -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);
     }
 }