Initial TCA commit into DCAEGEN2
[dcaegen2/analytics/tca.git] / dcae-analytics-it / src / test / java / org / openecomp / dcae / apod / analytics / it / plugins / BaseAnalyticsPluginsIT.java
1 /*
2  * ===============================LICENSE_START======================================
3  *  dcae-analytics
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
10  *
11  *          http://www.apache.org/licenses/LICENSE-2.0
12  *
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===========================================
19  */
20
21 package org.openecomp.dcae.apod.analytics.it.plugins;
22
23 import co.cask.cdap.etl.mock.test.HydratorTestBase;
24 import org.slf4j.Logger;
25 import org.slf4j.LoggerFactory;
26
27 import java.util.List;
28
29 import static com.google.common.collect.ImmutableList.of;
30
31 /**
32  * Base class for all the Hydrator test base , where the utility and common code for integration testing is written
33  * <p/>
34  * @author Manjesh Gowda. Creation Date: 2/3/2017.
35  */
36
37 public abstract class BaseAnalyticsPluginsIT extends HydratorTestBase {
38     private static final Logger LOG = LoggerFactory.getLogger(BaseAnalyticsPluginsIT.class);
39
40     /**
41      * Provides two simple messages for testing of Plugin
42      * <p/>
43      *
44      * @return
45      */
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);
50     }
51 }