You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by dc...@apache.org on 2025/05/02 21:12:29 UTC
(cassandra-accord) branch trunk updated: Enhacned the stateful property test API to have accept a list of commands rather than force a builder (#189)
This is an automated email from the ASF dual-hosted git repository.
dcapwell pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
The following commit(s) were added to refs/heads/trunk by this push:
new 7f95490b Enhacned the stateful property test API to have accept a list of commands rather than force a builder (#189)
7f95490b is described below
commit 7f95490b1390b7fc68a4ff4ced7f161bafd8776b
Author: dcapwell <dc...@apache.org>
AuthorDate: Fri May 2 14:12:25 2025 -0700
Enhacned the stateful property test API to have accept a list of commands rather than force a builder (#189)
patch by David Capwell; reviewed by Yifan Cai for CASSANDRA-20577
---
accord-core/src/test/java/accord/utils/Property.java | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/accord-core/src/test/java/accord/utils/Property.java b/accord-core/src/test/java/accord/utils/Property.java
index bef889e3..eed829ca 100644
--- a/accord-core/src/test/java/accord/utils/Property.java
+++ b/accord-core/src/test/java/accord/utils/Property.java
@@ -944,6 +944,19 @@ public class Property
return this;
}
+ @SafeVarargs
+ public final CommandsBuilder<State, SystemUnderTest> addAllIf(Predicate<State> predicate,
+ Setup<State, SystemUnderTest> first,
+ Setup<State, SystemUnderTest> second,
+ Setup<State, SystemUnderTest>... rest)
+ {
+ addIf(predicate, first);
+ addIf(predicate, second);
+ for (var s : rest)
+ addIf(predicate, s);
+ return this;
+ }
+
public CommandsBuilder<State, SystemUnderTest> addAllIf(Predicate<State> predicate, Consumer<IfBuilder<State, SystemUnderTest>> sub)
{
sub.accept(new IfBuilder<>()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org