Add Abstract and Simple factories to create a test runner.
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2023-09-26 22:17:17 +03:00
parent a1b85e3771
commit 9056c8d047
2 changed files with 23 additions and 0 deletions
@@ -0,0 +1,10 @@
package space.kklochko.simple_jbdd.tests.factories;
import space.kklochko.simple_jbdd.tests.Test;
import space.kklochko.simple_jbdd.tests.commands.AbstractTestCommand;
import space.kklochko.simple_jbdd.tests.runners.AbstractTestRunner;
public abstract class AbstractTestRunnerFactory {
public abstract AbstractTestRunner create(AbstractTestCommand<Test> command);
}
@@ -0,0 +1,13 @@
package space.kklochko.simple_jbdd.tests.factories;
import space.kklochko.simple_jbdd.tests.Test;
import space.kklochko.simple_jbdd.tests.commands.AbstractTestCommand;
import space.kklochko.simple_jbdd.tests.runners.AbstractTestRunner;
import space.kklochko.simple_jbdd.tests.runners.SimpleTestRunner;
public class SimpleTestRunnerFactory extends AbstractTestRunnerFactory {
public AbstractTestRunner create(AbstractTestCommand<Test> command) {
return new SimpleTestRunner(command);
}
}