com.github.iskrenyp.slackreporter.slack.ISlackClient.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spock-slack-reporter Show documentation
Show all versions of spock-slack-reporter Show documentation
A simple annotation driven local extension for Spock framework, which enables you to screen record your Specifications
package com.github.iskrenyp.slackreporter.slack
import com.github.iskrenyp.slackreporter.SlackReporterConfigEntity
import com.github.iskrenyp.slackreporter.exception.SpockSlackReporterException
import com.ullink.slack.simpleslackapi.SlackPreparedMessage
trait ISlackClient {
abstract def connectToSlack(String userToken) throws SpockSlackReporterException
abstract def disconnectFromSlack() throws SpockSlackReporterException
abstract T prepareMessage(SlackReporterConfigEntity entity, Closure consumeMessage)
abstract def sendMessage(SlackPreparedMessage message, String channelName) throws SpockSlackReporterException
}