diff options
author | Jorge Hernandez <jorge.hernandez-herrero@att.com> | 2019-03-19 16:10:37 -0500 |
---|---|---|
committer | Jorge Hernandez <jorge.hernandez-herrero@att.com> | 2019-03-19 16:10:37 -0500 |
commit | cc4765116c0b5716f8edf4dc23970e964bb1fe5d (patch) | |
tree | 240eebda61412744b9346c6b44bc2c36a7757290 /policy-endpoints/src/test/java | |
parent | d90b1d217364e184ba91e56ff85cdc0529ee9004 (diff) |
Add method to support configure all topics at once
regardless of type (source or sink)
Change-Id: Idaebae611746e364364d35375519173a7461ae61
Issue-ID: POLICY-1608
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'policy-endpoints/src/test/java')
-rw-r--r-- | policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/TopicEndpointProxyTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/TopicEndpointProxyTest.java b/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/TopicEndpointProxyTest.java index a311c0b0..ba5fe18e 100644 --- a/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/TopicEndpointProxyTest.java +++ b/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/TopicEndpointProxyTest.java @@ -145,6 +145,17 @@ public class TopicEndpointProxyTest { } @Test + public void addTopics() { + TopicEndpoint manager = new TopicEndpointProxy(); + + List<Topic> topics = manager.addTopics(configuration); + assertSame(6, topics.size()); + + assertTrue(allSources(topics)); + assertTrue(allSinks(topics)); + } + + @Test public void getTopicSources() { TopicEndpoint manager = new TopicEndpointProxy(); |