diff options
| author | J08nY | 2018-04-25 20:02:48 +0200 |
|---|---|---|
| committer | J08nY | 2018-04-25 20:02:48 +0200 |
| commit | 8449365ffddd19306047495e8fc107b07d4d6dbe (patch) | |
| tree | d62388cb3c6e21021bb9e509fe41765c5c73d5f9 /src/cz/crcs/ectester/common/test/CompoundTest.java | |
| parent | 89ddc1ec043075dbd19c2ec0bcd77b9b83302837 (diff) | |
| download | ECTester-8449365ffddd19306047495e8fc107b07d4d6dbe.tar.gz ECTester-8449365ffddd19306047495e8fc107b07d4d6dbe.tar.zst ECTester-8449365ffddd19306047495e8fc107b07d4d6dbe.zip | |
Fix wrong test suite evaluation.
Diffstat (limited to 'src/cz/crcs/ectester/common/test/CompoundTest.java')
| -rw-r--r-- | src/cz/crcs/ectester/common/test/CompoundTest.java | 8 |
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) { |
