Statements { public String getUpdateEventExecutionStatement() { return QueryBuilder.update(keyspace, TABLE_EVENT_EXECUTIONS) .using(QueryBuilder.ttl(bindMarker())) .with(set(PAYLOAD_KEY, bindMarker())) .where(eq(MESSAGE_ID_KEY, bindMarker())) .and(eq(EVENT_HANDLER_NAME_KEY, bindMarker())) .and(eq(EVENT_EXECUTION_ID_KEY, bindMarker())) .getQueryString(); } @Inject  Statements(CassandraConfiguration config); String getInsertWorkflowDefStatement(); String getInsertWorkflowDefVersionIndexStatement(); String getInsertTaskDefStatement(); String getSelectWorkflowDefStatement(); String getSelectAllWorkflowDefVersionsByNameStatement(); String getSelectAllWorkflowDefsStatement(); String getSelectTaskDefStatement(); String getSelectAllTaskDefsStatement(); String getUpdateWorkflowDefStatement(); String getDeleteWorkflowDefStatement(); String getDeleteWorkflowDefIndexStatement(); String getDeleteTaskDefStatement(); String getInsertWorkflowStatement(); String getInsertTaskStatement(); String getInsertEventExecutionStatement(); String getSelectTotalStatement(); String getSelectTaskStatement(); String getSelectWorkflowStatement(); String getSelectWorkflowWithTasksStatement(); String getSelectTaskFromLookupTableStatement(); String getSelectTasksFromTaskDefLimitStatement(); String getSelectAllEventExecutionsForMessageFromEventExecutionsStatement(); String getUpdateWorkflowStatement(); String getUpdateTotalTasksStatement(); String getUpdateTotalPartitionsStatement(); String getUpdateTaskLookupStatement(); String getUpdateTaskDefLimitStatement(); String getUpdateEventExecutionStatement(); String getDeleteWorkflowStatement(); String getDeleteTaskLookupStatement(); String getDeleteTaskStatement(); String getDeleteTaskDefLimitStatement(); String getDeleteEventExecutionsStatement(); String getInsertEventHandlerStatement(); String getSelectAllEventHandlersStatement(); String getDeleteEventHandlerStatement();  }
@Test public void testGetUpdateEventExecutionStatement() { String statement = "UPDATE junit.event_executions USING TTL ? SET payload=? WHERE message_id=? AND event_handler_name=? AND event_execution_id=?;"; assertEquals(statement, statements.getUpdateEventExecutionStatement()); }