summaryrefslogtreecommitdiffstats
path: root/ms
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-09-14 19:48:59 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-14 19:48:59 +0000
commitbcc8d6c11d96b6a684ed0577e4bddad680bec4e1 (patch)
tree03a4cb5dc2911ab76707f9b088edf852806ff2df /ms
parentecdb4224426ea59e070d1e6c759e5f1bfb65f84b (diff)
parent2986e0cc17bd29a0c3e46d6d51c252ed8851162d (diff)
Merge "added test case to PolicyFinderServiceImpl"
Diffstat (limited to 'ms')
-rw-r--r--ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.java b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.java
index 17dddd4e..4dc4fa7c 100644
--- a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.java
+++ b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/service/extinf/impl/PolicyFinderServiceImplTest.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.service.extinf.impl;
import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.when;
@@ -67,6 +70,12 @@ public class PolicyFinderServiceImplTest {
doReturn(new GetConfigResponse()).when(policyFinder).makeOutboundCall(Matchers.any(), Matchers.any());
assertNotNull(policyFinder.getConfig("policy"));
}
+
+ @Test
+ public void testFindPolicy() throws Exception {
+ doReturn(new GetConfigResponse()).when(policyFinder).makeOutboundCall(Matchers.any(), Matchers.any());
+ assertNull(policyFinder.findPolicy("policy"));
+ }
@SuppressWarnings("unchecked")
@Test