1 package org.openecomp.sdc.be.config;
4 import org.openecomp.sdc.be.config.DmaapConsumerConfiguration.Credential;
6 public class DmaapConsumerConfigurationTest {
8 private DmaapConsumerConfiguration createTestSubject() {
9 return new DmaapConsumerConfiguration();
14 public void testGetHosts() throws Exception {
15 DmaapConsumerConfiguration testSubject;
19 testSubject = createTestSubject();
20 result = testSubject.getHosts();
25 public void testSetHosts() throws Exception {
26 DmaapConsumerConfiguration testSubject;
30 testSubject = createTestSubject();
31 testSubject.setHosts(hosts);
36 public void testGetConsumerGroup() throws Exception {
37 DmaapConsumerConfiguration testSubject;
41 testSubject = createTestSubject();
42 result = testSubject.getConsumerGroup();
47 public void testSetConsumerGroup() throws Exception {
48 DmaapConsumerConfiguration testSubject;
49 String consumerGroup = "";
52 testSubject = createTestSubject();
53 testSubject.setConsumerGroup(consumerGroup);
58 public void testGetConsumerId() throws Exception {
59 DmaapConsumerConfiguration testSubject;
63 testSubject = createTestSubject();
64 result = testSubject.getConsumerId();
69 public void testSetConsumerId() throws Exception {
70 DmaapConsumerConfiguration testSubject;
71 String consumerId = "";
74 testSubject = createTestSubject();
75 testSubject.setConsumerId(consumerId);
80 public void testGetTimeoutMs() throws Exception {
81 DmaapConsumerConfiguration testSubject;
85 testSubject = createTestSubject();
86 result = testSubject.getTimeoutMs();
91 public void testSetTimeoutMs() throws Exception {
92 DmaapConsumerConfiguration testSubject;
93 Integer timeoutMs = 0;
96 testSubject = createTestSubject();
97 testSubject.setTimeoutMs(timeoutMs);
102 public void testGetLimit() throws Exception {
103 DmaapConsumerConfiguration testSubject;
107 testSubject = createTestSubject();
108 result = testSubject.getLimit();
113 public void testSetLimit() throws Exception {
114 DmaapConsumerConfiguration testSubject;
118 testSubject = createTestSubject();
119 testSubject.setLimit(limit);
124 public void testGetPollingInterval() throws Exception {
125 DmaapConsumerConfiguration testSubject;
129 testSubject = createTestSubject();
130 result = testSubject.getPollingInterval();
135 public void testSetPollingInterval() throws Exception {
136 DmaapConsumerConfiguration testSubject;
137 Integer pollingInterval = 0;
140 testSubject = createTestSubject();
141 testSubject.setPollingInterval(pollingInterval);
146 public void testGetTopic() throws Exception {
147 DmaapConsumerConfiguration testSubject;
151 testSubject = createTestSubject();
152 result = testSubject.getTopic();
157 public void testSetTopic() throws Exception {
158 DmaapConsumerConfiguration testSubject;
162 testSubject = createTestSubject();
163 testSubject.setTopic(topic);
168 public void testGetLatitude() throws Exception {
169 DmaapConsumerConfiguration testSubject;
173 testSubject = createTestSubject();
174 result = testSubject.getLatitude();
179 public void testSetLatitude() throws Exception {
180 DmaapConsumerConfiguration testSubject;
181 Double latitude = null;
184 testSubject = createTestSubject();
185 testSubject.setLatitude(latitude);
190 public void testGetLongitude() throws Exception {
191 DmaapConsumerConfiguration testSubject;
195 testSubject = createTestSubject();
196 result = testSubject.getLongitude();
201 public void testSetLongitude() throws Exception {
202 DmaapConsumerConfiguration testSubject;
203 Double longitude = null;
206 testSubject = createTestSubject();
207 testSubject.setLongitude(longitude);
212 public void testGetVersion() throws Exception {
213 DmaapConsumerConfiguration testSubject;
217 testSubject = createTestSubject();
218 result = testSubject.getVersion();
223 public void testSetVersion() throws Exception {
224 DmaapConsumerConfiguration testSubject;
228 testSubject = createTestSubject();
229 testSubject.setVersion(version);
234 public void testGetServiceName() throws Exception {
235 DmaapConsumerConfiguration testSubject;
239 testSubject = createTestSubject();
240 result = testSubject.getServiceName();
245 public void testSetServiceName() throws Exception {
246 DmaapConsumerConfiguration testSubject;
247 String serviceName = "";
250 testSubject = createTestSubject();
251 testSubject.setServiceName(serviceName);
256 public void testGetEnvironment() throws Exception {
257 DmaapConsumerConfiguration testSubject;
261 testSubject = createTestSubject();
262 result = testSubject.getEnvironment();
267 public void testSetEnvironment() throws Exception {
268 DmaapConsumerConfiguration testSubject;
269 String environment = "";
272 testSubject = createTestSubject();
273 testSubject.setEnvironment(environment);
278 public void testGetPartner() throws Exception {
279 DmaapConsumerConfiguration testSubject;
283 testSubject = createTestSubject();
284 result = testSubject.getPartner();
289 public void testSetPartner() throws Exception {
290 DmaapConsumerConfiguration testSubject;
294 testSubject = createTestSubject();
295 testSubject.setPartner(partner);
300 public void testGetRouteOffer() throws Exception {
301 DmaapConsumerConfiguration testSubject;
305 testSubject = createTestSubject();
306 result = testSubject.getRouteOffer();
311 public void testSetRouteOffer() throws Exception {
312 DmaapConsumerConfiguration testSubject;
313 String routeOffer = "";
316 testSubject = createTestSubject();
317 testSubject.setRouteOffer(routeOffer);
322 public void testGetProtocol() throws Exception {
323 DmaapConsumerConfiguration testSubject;
327 testSubject = createTestSubject();
328 result = testSubject.getProtocol();
333 public void testSetProtocol() throws Exception {
334 DmaapConsumerConfiguration testSubject;
335 String protocol = "";
338 testSubject = createTestSubject();
339 testSubject.setProtocol(protocol);
344 public void testGetContenttype() throws Exception {
345 DmaapConsumerConfiguration testSubject;
349 testSubject = createTestSubject();
350 result = testSubject.getContenttype();
355 public void testSetContenttype() throws Exception {
356 DmaapConsumerConfiguration testSubject;
357 String contenttype = "";
360 testSubject = createTestSubject();
361 testSubject.setContenttype(contenttype);
366 public void testIsDme2TraceOn() throws Exception {
367 DmaapConsumerConfiguration testSubject;
371 testSubject = createTestSubject();
372 result = testSubject.isDme2TraceOn();
377 public void testGetDme2TraceOn() throws Exception {
378 DmaapConsumerConfiguration testSubject;
382 testSubject = createTestSubject();
383 result = testSubject.getDme2TraceOn();
388 public void testSetDme2TraceOn() throws Exception {
389 DmaapConsumerConfiguration testSubject;
390 Boolean dme2TraceOn = null;
393 testSubject = createTestSubject();
394 testSubject.setDme2TraceOn(dme2TraceOn);
399 public void testGetAftEnvironment() throws Exception {
400 DmaapConsumerConfiguration testSubject;
404 testSubject = createTestSubject();
405 result = testSubject.getAftEnvironment();
410 public void testSetAftEnvironment() throws Exception {
411 DmaapConsumerConfiguration testSubject;
412 String aftEnvironment = "";
415 testSubject = createTestSubject();
416 testSubject.setAftEnvironment(aftEnvironment);
421 public void testGetAftDme2ConnectionTimeoutMs() throws Exception {
422 DmaapConsumerConfiguration testSubject;
426 testSubject = createTestSubject();
427 result = testSubject.getAftDme2ConnectionTimeoutMs();
432 public void testSetAftDme2ConnectionTimeoutMs() throws Exception {
433 DmaapConsumerConfiguration testSubject;
434 Integer aftDme2ConnectionTimeoutMs = 0;
437 testSubject = createTestSubject();
438 testSubject.setAftDme2ConnectionTimeoutMs(aftDme2ConnectionTimeoutMs);
443 public void testGetAftDme2RoundtripTimeoutMs() throws Exception {
444 DmaapConsumerConfiguration testSubject;
448 testSubject = createTestSubject();
449 result = testSubject.getAftDme2RoundtripTimeoutMs();
454 public void testSetAftDme2RoundtripTimeoutMs() throws Exception {
455 DmaapConsumerConfiguration testSubject;
456 Integer aftDme2RoundtripTimeoutMs = 0;
459 testSubject = createTestSubject();
460 testSubject.setAftDme2RoundtripTimeoutMs(aftDme2RoundtripTimeoutMs);
465 public void testGetAftDme2ReadTimeoutMs() throws Exception {
466 DmaapConsumerConfiguration testSubject;
470 testSubject = createTestSubject();
471 result = testSubject.getAftDme2ReadTimeoutMs();
476 public void testSetAftDme2ReadTimeoutMs() throws Exception {
477 DmaapConsumerConfiguration testSubject;
478 Integer aftDme2ReadTimeoutMs = 0;
481 testSubject = createTestSubject();
482 testSubject.setAftDme2ReadTimeoutMs(aftDme2ReadTimeoutMs);
487 public void testGetDme2preferredRouterFilePath() throws Exception {
488 DmaapConsumerConfiguration testSubject;
492 testSubject = createTestSubject();
493 result = testSubject.getDme2preferredRouterFilePath();
498 public void testSetDme2preferredRouterFilePath() throws Exception {
499 DmaapConsumerConfiguration testSubject;
500 String dme2preferredRouterFilePath = "";
503 testSubject = createTestSubject();
504 testSubject.setDme2preferredRouterFilePath(dme2preferredRouterFilePath);
509 public void testGetCredential() throws Exception {
510 DmaapConsumerConfiguration testSubject;
514 testSubject = createTestSubject();
515 result = testSubject.getCredential();
520 public void testSetCredential() throws Exception {
521 DmaapConsumerConfiguration testSubject;
522 Credential credential = null;
525 testSubject = createTestSubject();
526 testSubject.setCredential(credential);
531 public void testToString() throws Exception {
532 DmaapConsumerConfiguration testSubject;
536 testSubject = createTestSubject();
537 result = testSubject.toString();
542 public void testGetTimeLimitForNotificationHandleMs() throws Exception {
543 DmaapConsumerConfiguration testSubject;
547 testSubject = createTestSubject();
548 result = testSubject.getTimeLimitForNotificationHandleMs();
553 public void testSetTimeLimitForNotificationHandleMs() throws Exception {
554 DmaapConsumerConfiguration testSubject;
555 Integer timeLimitForNotificationHandleMs = 0;
558 testSubject = createTestSubject();
559 testSubject.setTimeLimitForNotificationHandleMs(timeLimitForNotificationHandleMs);