package com.eneco.trading.kafka.connect.twitter

import org.scalatest.{FunSuite, Matchers, BeforeAndAfter}

/**
  * Created by [email protected] on 29/02/16. 
  * kafka-connect-twitter
  */
trait TestTwitterBase extends FunSuite with Matchers with BeforeAndAfter {
  def getConfig = {
    Map(TwitterSourceConfig.CONSUMER_KEY_CONFIG->"test",
      TwitterSourceConfig.CONSUMER_SECRET_CONFIG->"c-secret",
      TwitterSourceConfig.SECRET_CONFIG->"secret",
      TwitterSourceConfig.TOKEN_CONFIG->"token",
      TwitterSourceConfig.TRACK_TERMS->"term1",
      TwitterSourceConfig.TWITTER_APP_NAME->"myApp",
      TwitterSourceConfig.BATCH_SIZE->"1337",
      TwitterSourceConfig.TOPIC->"just-a-topic"
    )
  }
  def getSinkConfig = {
    Map(TwitterSinkConfig.CONSUMER_KEY_CONFIG->"test",
      TwitterSinkConfig.CONSUMER_SECRET_CONFIG->"c-secret",
      TwitterSinkConfig.SECRET_CONFIG->"secret",
      TwitterSinkConfig.TOKEN_CONFIG->"token",
      TwitterSinkConfig.TOPICS->"just-a-sink-topic"
    )
  }
}