This is an automated email from the ASF dual-hosted git repository.
dcapwell pushed a commit to branch cep-15-accord
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/cep-15-accord by this push:
new 62f895adcf Ninja: Add AccordTestUtils.parse which was missing in the
latest commit
62f895adcf is described below
commit 62f895adcf2472e0bc3cef433d58c18106663dea
Author: David Capwell <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]