This is an automated email from the ASF dual-hosted git repository. maedhroz pushed a commit to branch cep-15-accord in repository https://gitbox.apache.org/repos/asf/cassandra.git
commit f8243f41c9e96c4a0390558086ece078b0b6b15c Author: David Capwell <dcapw...@apache.org> AuthorDate: Mon Jan 9 13:20:58 2023 -0800 Ninja: Add AccordTestUtils.parse which was missing in the latest commit --- .../unit/org/apache/cassandra/service/accord/AccordTestUtils.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/unit/org/apache/cassandra/service/accord/AccordTestUtils.java b/test/unit/org/apache/cassandra/service/accord/AccordTestUtils.java index 4adad32d8a..20142c439b 100644 --- a/test/unit/org/apache/cassandra/service/accord/AccordTestUtils.java +++ b/test/unit/org/apache/cassandra/service/accord/AccordTestUtils.java @@ -174,6 +174,14 @@ public class AccordTestUtils return statement.createTxn(ClientState.forInternalCalls(), options); } + public static TransactionStatement parse(String query) + { + TransactionStatement.Parsed parsed = (TransactionStatement.Parsed) QueryProcessor.parseStatement(query); + Assert.assertNotNull(parsed); + TransactionStatement statement = (TransactionStatement) parsed.prepare(ClientState.forInternalCalls()); + return statement; + } + public static Txn createTxn(int readKey, int... writeKeys) { StringBuilder sb = new StringBuilder("BEGIN TRANSACTION\n"); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org