summaryrefslogtreecommitdiffstats
path: root/ms/neng/src/test/java/org
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-09-14 01:05:39 +0530
committerSandeep J <sandeejh@in.ibm.com>2018-09-14 01:14:18 +0530
commitdbd0b30d4b25fc578558ca11eb6aa1faa0d7777b (patch)
tree202b9ca1b199414584d942ac46b0ae7bf71df827 /ms/neng/src/test/java/org
parent43a039f58457a29e843393ef49f86da119fa415e (diff)
added test case to PropertyOperatorTest.java
to increase code coverage Issue-ID: CCSDK-552 Change-Id: I9efbb57491b6b6c53447dbb77da97d5a62c93481 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'ms/neng/src/test/java/org')
-rw-r--r--ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperatorTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperatorTest.java b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperatorTest.java
index 9d6c3f92..38d44f18 100644
--- a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperatorTest.java
+++ b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperatorTest.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.assertNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@@ -72,6 +75,12 @@ public class PropertyOperatorTest {
PropertyOperator op = new PropertyOperator();
assertEquals("ASDF", op.apply("asdf", props, params));
}
+
+ @Test
+ public void testApply() throws Exception {
+ PropertyOperator op = new PropertyOperator();
+ assertNull("ASDF", op.apply("asdf", "", params));
+ }
@Test
public void applySubstr() throws Exception {