Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Commit

Permalink
puzzle for IT
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Aug 15, 2017
1 parent 6338216 commit daad69b
Showing 1 changed file with 9 additions and 8 deletions.
Expand Up @@ -39,26 +39,27 @@
* @author Mihai Andronache (amihaiemil@gmail.com)
* @version $Id$
* @since 1.0.1
* @todo #219:1h Write some integration tests for this step, check that
* the tree of steps executes correctly/in the right order. For this, you
* need to mock a Github server (use MkGithub) in appropriate ways, to check
* each flow.
*/
public final class GeneralPreconditionsCheck extends PreconditionCheckStep {
public final class GeneralPreconditionsCheck extends IntermediaryStep {

/**
* Ctor.
* @param onTrue Step that should be performed next if the check is true.
* @param onFalse Step that should be performed next if the check is false.
* @param next Next step, after all precondition have passed.
*/
public GeneralPreconditionsCheck(
final Step onTrue, final Step onFalse
) {
super(onTrue, onFalse);
public GeneralPreconditionsCheck(final Step next) {
super(next);
}

@Override
public void perform(Command command, Logger logger) throws IOException {
final PreconditionCheckStep all;

final PreconditionCheckStep repoForkCheck = new RepoForkCheck(
command.repo().json(), this.onTrue(),
command.repo().json(), this.next(),
this.finalCommentStep(command, "denied.fork.comment", command.authorLogin())
);

Expand Down

0 comments on commit daad69b

Please sign in to comment.