|
@@ -135,7 +135,12 @@ public final class TestContractRunner {
|
|
|
testers.stream().forEach(t -> t.param(name, value));
|
|
testers.stream().forEach(t -> t.param(name, value));
|
|
|
return this;
|
|
return this;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ public TestContractRunner apply(Consumer<TestContractRunner> configurator) {
|
|
|
|
|
+ configurator.accept(this);
|
|
|
|
|
+ return this;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
|
public TestContractRunner supplier(Supplier<?> supplier) {
|
|
public TestContractRunner supplier(Supplier<?> supplier) {
|
|
|
this.supplier = (Supplier)supplier;
|
|
this.supplier = (Supplier)supplier;
|