2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2018 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.so.client.dmaapproperties;
23 import static org.junit.Assert.assertEquals;
24 import org.junit.BeforeClass;
25 import org.junit.Test;
26 import org.onap.so.BaseTest;
27 import org.springframework.beans.factory.annotation.Autowired;
29 public class GlobalDmaapPublisherTest extends BaseTest {
32 public static void setUp() throws Exception {
33 System.setProperty("mso.global.dmaap.host", "http://test:1234");
37 private GlobalDmaapPublisher globalDmaapPublisher;
40 public void testGetters() {
42 "81B7E3533B91A6706830611FB9A8ECE529BBCCE754B1F1520FA7C8698B42F97235BEFA993A387E664D6352C63A6185D68DA7F0B1D360637CBA102CB166E3E62C11EB1F75386D3506BCECE51E54",
43 globalDmaapPublisher.getAuth());
44 assertEquals("07a7159d3bf51a0e53be7a8f89699be7", globalDmaapPublisher.getKey());
45 assertEquals("com.att.mso.asyncStatusUpdate", globalDmaapPublisher.getTopic());
46 assertEquals("http://test:1234", globalDmaapPublisher.getHost().get());