2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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.dmaap.filemonitor;
23 import static org.junit.Assert.*;
27 import org.junit.After;
28 import org.junit.Before;
29 import org.junit.Test;
31 public class ServicePropertyServiceTest {
34 public void setUp() throws Exception {
38 public void tearDown() throws Exception {
42 public void testInit() {
44 ServicePropertyService service = new ServicePropertyService();
47 } catch (Exception e) {
48 // TODO Auto-generated catch block
56 public void testsetLoadOnStartup() {
58 ServicePropertyService service = new ServicePropertyService();
60 service.setLoadOnStartup(true);
61 } catch (Exception e) {
62 // TODO Auto-generated catch block
70 public void testSetSsfFileMonitorPollingInterval() {
72 ServicePropertyService service = new ServicePropertyService();
74 service.setSsfFileMonitorPollingInterval("interval");
75 } catch (Exception e) {
76 // TODO Auto-generated catch block
84 public void testSetSsfFileMonitorThreadpoolSize() {
86 ServicePropertyService service = new ServicePropertyService();
88 service.setSsfFileMonitorThreadpoolSize("threadPoolSize");
89 } catch (Exception e) {
90 // TODO Auto-generated catch block
98 public void testIsLoadOnStartup() {
99 ServicePropertyService service = new ServicePropertyService();
100 service.isLoadOnStartup();
106 public void testGetSsfFileMonitorPollingInterval() {
107 ServicePropertyService service = new ServicePropertyService();
108 service.getSsfFileMonitorPollingInterval();
114 public void testGetSsfFileMonitorThreadpoolSize() {
115 ServicePropertyService service = new ServicePropertyService();
116 service.getSsfFileMonitorThreadpoolSize();
122 public void testGetFileChangedListener() {
123 ServicePropertyService service = new ServicePropertyService();
124 service.getFileChangedListener();
130 public void testSetFileChangedListener() {
131 ServicePropertyService service = new ServicePropertyService();
132 service.setFileChangedListener(null);
138 public void testGetFilePropertiesMap() {
139 ServicePropertyService service = new ServicePropertyService();
140 service.getFilePropertiesMap();
146 public void testSetFilePropertiesMap() {
147 ServicePropertyService service = new ServicePropertyService();
148 service.setFilePropertiesMap(null);