aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/common/test/CompoundTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cz/crcs/ectester/common/test/CompoundTest.java')
-rw-r--r--src/cz/crcs/ectester/common/test/CompoundTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cz/crcs/ectester/common/test/CompoundTest.java b/src/cz/crcs/ectester/common/test/CompoundTest.java
index d7a2d9c..2c851b2 100644
--- a/src/cz/crcs/ectester/common/test/CompoundTest.java
+++ b/src/cz/crcs/ectester/common/test/CompoundTest.java
@@ -37,10 +37,18 @@ public class CompoundTest extends Test {
return new CompoundTest(callback, RUN_ALL, tests);
}
+ public static CompoundTest function(Function<Test[], Result> callback, Consumer<Test[]> runCallback, Test... tests) {
+ return new CompoundTest(callback, runCallback, tests);
+ }
+
public static CompoundTest function(Function<Test[], Result> callback, String description, Test... tests) {
return new CompoundTest(callback, RUN_ALL, description, tests);
}
+ public static CompoundTest function(Function<Test[], Result> callback, Consumer<Test[]> runCallback, String description, Test... tests) {
+ return new CompoundTest(callback, runCallback, description, tests);
+ }
+
public static CompoundTest all(Result.ExpectedValue what, Test... all) {
return new CompoundTest((tests) -> {
for (Test test : tests) {