picimako / citric

Citrus framework integration for the IntelliJ platform.
0 stars 0 forks source link

SQL action support #50

Closed picimako closed 2 weeks ago

picimako commented 2 months ago

Summary

Add SQL support for Citrus.

Tasks

* Some may not be doable.

Java/Groovy XML Spring XML YAML
SQL language injection [+] sql().statement() [+] test.actions.sql.statements.statement [+] testcase.actions.sql.statement [+] actions.sql/plsql.statements.statement
Code completion of column names in 'validate'/'extract' that are known in 'statement' [+] \$(sql().dataSource(dataSource).query().statement("select NAME from CUSTOMERS where CUSTOMER_ID='${customerId}'").validate("[caret]", "")
At caret: NAME
Only for select statements. statement() call can be anywhere in the chain, even multiple ones.
[+] [+] [IP]
Bean completion (DataSource) [+] test.actions.sql@datasource [+] testcase.actions.sql@datasource [+] sql/plsql.dataSource/data-source
Bean completion (TransactionManager) [+] test.actions.sql.transaction@manager [+] testcase.actions.sql@transaction-manager [+] sql/plsql.transaction.manager
Groovy language injection [+] sql().validateScript() [+] sql.validate.script [+] sql.validate-script [+] sql.validate.script.value

Resources

picimako commented 2 weeks ago

Completed in v1.0.18.