diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2018-09-27 16:19:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-27 16:19:48 +0000 |
commit | 5305dfe6943760b5ac3248c8352d793e2e24adc3 (patch) | |
tree | 24a5aee520986e401e769b2be41d770c9cadc8a0 /policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedUebTopicSourceTest.java | |
parent | 9b76e95681b00ba87c9affbe43ecb502c8c574f9 (diff) | |
parent | bc6990f795e5ef222dfb7a9a12fe896be578e88b (diff) |
Merge "Added more coverage to policy-endpoints internal"
Diffstat (limited to 'policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedUebTopicSourceTest.java')
-rw-r--r-- | policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedUebTopicSourceTest.java | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedUebTopicSourceTest.java b/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedUebTopicSourceTest.java new file mode 100644 index 00000000..373e80a4 --- /dev/null +++ b/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/event/comm/bus/internal/SingleThreadedUebTopicSourceTest.java @@ -0,0 +1,61 @@ +/* + * ============LICENSE_START======================================================= + * policy-endpoints + * ================================================================================ + * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.common.endpoints.event.comm.bus.internal; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.onap.policy.common.endpoints.event.comm.Topic.CommInfrastructure; +import org.onap.policy.common.endpoints.event.comm.bus.BusTopicTestBase; + +public class SingleThreadedUebTopicSourceTest extends BusTopicTestBase { + private SingleThreadedUebTopicSource source; + + /** + * Creates the object to be tested. + */ + @Before + public void setUp() { + super.setUp(); + + source = new SingleThreadedUebTopicSource(makeBuilder().build()); + } + + @After + public void tearDown() { + source.shutdown(); + } + + @Test + public void testToString() { + assertTrue(source.toString().startsWith("SingleThreadedUebTopicSource [")); + source.shutdown(); + } + + @Test + public void testGetTopicCommInfrastructure() { + assertEquals(CommInfrastructure.UEB, source.getTopicCommInfrastructure()); + } + +} |