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.plugins;
23 import co.cask.cdap.etl.mock.test.HydratorTestBase;
24 import org.slf4j.Logger;
25 import org.slf4j.LoggerFactory;
27 import java.util.List;
29 import static com.google.common.collect.ImmutableList.of;
32 * Base class for all the Hydrator test base , where the utility and common code for integration testing is written
34 * @author Manjesh Gowda. Creation Date: 2/3/2017.
37 public abstract class BaseAnalyticsPluginsIT extends HydratorTestBase {
38 private static final Logger LOG = LoggerFactory.getLogger(BaseAnalyticsPluginsIT.class);
41 * Provides two simple messages for testing of Plugin
46 protected static List<String> getTwoSampleMessage() {
47 String message1 = "{ \"message\" : \"Test Message 1 from DMaaP source Plugin\"}";
48 String message2 = "{ \"message\" : \"Test Message 2 from DMaaP source Plugin\"}";
49 return of(message1, message2);