2 * ===============================LICENSE_START======================================
4 * ================================================================================
5 * Copyright © 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.dcae.apod.analytics.it.dmaap;
23 import org.onap.dcae.apod.analytics.dmaap.service.publisher.DMaaPMRPublisher;
24 import org.onap.dcae.apod.analytics.dmaap.service.subscriber.DMaaPMRSubscriber;
29 * Creates DMaaP MR Publisher and Subscriber Instances for Integration Testing purposes
31 * @author Rajiv Singla . Creation Date: 2/1/2017.
33 public interface DMaaPMRCreator {
36 * Provides {@link DMaaPMRSubscriber} instance for Integration testing configured for the specific test
39 * @return DMaaP MR Subscriber instance for integration testing
41 DMaaPMRSubscriber getDMaaPMRSubscriber();
45 * Provides {@link DMaaPMRSubscriber} instance for Integration testing configured with given topic name
47 * @param subscriberTopicName DMaaP MR Subscriber Topic Name
48 * @return DMaaP MR Subscriber instance which is subscriber to given subscriber topic
50 DMaaPMRSubscriber getDMaaPMRSubscriberWithTopicName(String subscriberTopicName);
53 * Provides {@link DMaaPMRPublisher} instance for Integration testing configured for the specific test
56 * @return DMaaP MR Publisher instance for integration testing
58 DMaaPMRPublisher getDMaaPMRPublisher();
62 * Provides {@link DMaaPMRPublisher} instance for Integration testing configured with given topic name
64 * @param publisherTopicName DMaaP MR publisher topic name
65 * @return DMaaP MR Publisher instance for integration testing
67 DMaaPMRPublisher getDMaaPMRPublisherWithTopicName(String publisherTopicName);
70 * Provides a map of DMaaP subscriber config for Integration testing configured with given topic name
72 * @return Map of key-value pair of subscriber config
74 Map<String, String> getDMaaPMRSubscriberConfig();
77 * Provides a map of DMaaP publisher config for Integration testing configured with given topic name
79 * @return Map of key-value pair of publisher config
81 Map<String, String> getDMaaPMRPublisherConfig();