This is an automated email from the ASF dual-hosted git repository. dcapwell pushed a commit to branch poc/route-index-on-journal in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
commit 30a85b58cdc1bf70fd71dac694194c46b0d8bf2a Author: David Capwell <[email protected]> AuthorDate: Tue Dec 10 15:29:08 2024 -0800 added new addIf method --- accord-core/src/test/java/accord/utils/Property.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/accord-core/src/test/java/accord/utils/Property.java b/accord-core/src/test/java/accord/utils/Property.java index f76ee293..79c29c5a 100644 --- a/accord-core/src/test/java/accord/utils/Property.java +++ b/accord-core/src/test/java/accord/utils/Property.java @@ -896,6 +896,11 @@ public class Property return addIf(predicate, (rs, state) -> cmd.next(rs)); } + public CommandsBuilder<State, SystemUnderTest> addIf(Predicate<State> predicate, Command<State, SystemUnderTest, ?> cmd) + { + return addIf(predicate, (rs, state) -> cmd); + } + public CommandsBuilder<State, SystemUnderTest> addIf(Predicate<State> predicate, Setup<State, SystemUnderTest> cmd) { if (conditionalCommands == null) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
