io.split.qos.server.integrations.slack.commander.SlackCommanderProviderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qosrunner Show documentation
Show all versions of qosrunner Show documentation
Framework for running JUnit Tests as a Continous Service (QoS)
package io.split.qos.server.integrations.slack.commander;
import com.google.common.base.Preconditions;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
import io.split.qos.server.integrations.slack.commands.*;
@Singleton
public class SlackCommanderProviderImpl implements SlackCommandProvider {
private final Provider infoProvider;
private final Provider pauseProvider;
private final Provider resumeProvider;
private final Provider greenProvider;
private final Provider commandsProvider;
private final Provider failedProvider;
private final Provider missingProvider;
private final Provider runAllProvider;
private final Provider runTestProvider;
private final Provider configProvider;
private final Provider pingProvider;
private final Provider countProvider;
private final Provider storyProvider;
private final Provider testsProvider;
private final Provider succeededProvider;
@Inject
public SlackCommanderProviderImpl(
Provider infoCommandProvider,
Provider pauseCommandProvider,
Provider resumeCommandProvider,
Provider greenCommandProvider,
Provider commandsCommandProvider,
Provider failedCommandProvider,
Provider missingCommandProvider,
Provider succeededCommandProvider,
Provider runAllCommandProvider,
Provider runTestCommandProvider,
Provider countCommandProvider,
Provider configCommandProvider,
Provider pingCommandProvider,
Provider testsCommandProvider,
Provider storyCommandProvider) {
this.infoProvider = Preconditions.checkNotNull(infoCommandProvider);
this.pauseProvider = Preconditions.checkNotNull(pauseCommandProvider);
this.resumeProvider = Preconditions.checkNotNull(resumeCommandProvider);
this.greenProvider = Preconditions.checkNotNull(greenCommandProvider);
this.commandsProvider = Preconditions.checkNotNull(commandsCommandProvider);
this.failedProvider = Preconditions.checkNotNull(failedCommandProvider);
this.runAllProvider = Preconditions.checkNotNull(runAllCommandProvider);
this.runTestProvider = Preconditions.checkNotNull(runTestCommandProvider);
this.configProvider = Preconditions.checkNotNull(configCommandProvider);
this.pingProvider = Preconditions.checkNotNull(pingCommandProvider);
this.storyProvider = Preconditions.checkNotNull(storyCommandProvider);
this.testsProvider = Preconditions.checkNotNull(testsCommandProvider);
this.missingProvider = Preconditions.checkNotNull(missingCommandProvider);
this.succeededProvider = Preconditions.checkNotNull(succeededCommandProvider);
this.countProvider = Preconditions.checkNotNull(countCommandProvider);
}
@Override
public SlackInfoCommand info() {
return infoProvider.get();
}
@Override
public SlackPauseCommand pause() {
return pauseProvider.get();
}
@Override
public SlackResumeCommand resume() {
return resumeProvider.get();
}
@Override
public SlackGreenCommand green() {
return greenProvider.get();
}
@Override
public SlackCommandsCommand commands() {
return commandsProvider.get();
}
@Override
public SlackFailedCommand failed() {
return failedProvider.get();
}
@Override
public SlackRunAllCommand runAll() {
return runAllProvider.get();
}
@Override
public SlackRunTestCommand runTest() {
return runTestProvider.get();
}
@Override
public SlackConfigCommand config() {
return configProvider.get();
}
@Override
public SlackPingCommand ping() {
return pingProvider.get();
}
@Override
public SlackTestsCommand tests() {
return testsProvider.get();
}
@Override
public SlackStoryCommand story() {
return storyProvider.get();
}
@Override
public SlackCountCommand count() {
return countProvider.get();
}
@Override
public SlackSucceededCommand succeeded() {
return succeededProvider.get();
}
@Override
public SlackMissingCommand missing() {
return missingProvider.get();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy