Compare commits

...
1 Commits
Author SHA1 Message Date
KKlochko a1b85e3771 Refactor the SimpleTestRunner and its test.
continuous-integration/drone/tag Build is passing
2023-09-26 22:14:55 +03:00
2 changed files with 3 additions and 3 deletions
@@ -4,10 +4,10 @@ import space.kklochko.simple_jbdd.tests.Test;
import space.kklochko.simple_jbdd.tests.commands.AbstractTestCommand; import space.kklochko.simple_jbdd.tests.commands.AbstractTestCommand;
public class SimpleTestRunner extends AbstractTestRunner { public class SimpleTestRunner extends AbstractTestRunner {
AbstractTestCommand<Test> command; private AbstractTestCommand<Test> command;
public SimpleTestRunner(AbstractTestCommand<Test> command) { public SimpleTestRunner(AbstractTestCommand<Test> command) {
this.command = command; setCommand(command);
} }
public boolean run() { public boolean run() {
@@ -40,7 +40,7 @@ class SimpleTestRunnerSpec extends Specification {
when: "The testCommand has been run" when: "The testCommand has been run"
def result = runner.run() def result = runner.run()
then: "The result is true" then: "The result is false"
!result !result
} }
} }