Language Injections
Various language injections are provided by the Citric plugin that extend the bundled configuration.
In general, injections require the IntelliLang plugin to be installed (bundled by default), while XPath injections require the XPathView + XSLT plugin.
All of these plugins are optional, but in case any of them is disabled or not installed, the corresponding functionality of Citric won’t be available.
Java DSL
These are all enabled by default, and can be disabled individually under IDE Settings > Editor > Language Injections. They are by default available since v1.0.0, unless stated otherwise.
These injections are available for both the Citrus 3.x and 4.x package structures.
Category | Location | Injected Language | Comment |
---|---|---|---|
TransformAction.Builder | TransformAction.Builder.source(String) TransformAction.Builder.xslt(String) | XML | |
ExecuteSQLQueryAction.Builder | ExecuteSQLQueryAction.Builder.groovy(String) | Groovy | In citrus-sql package. |
GroovyAction.Builder | GroovyAction.Builder.groovy(String) GroovyAction.Builder.script(String) | Groovy | In citrus-groovy package. |
ScriptValidationContext.Builder | ScriptValidationContext.Builder.script(String) | Groovy | |
XpathMessageValidationContext.Builder | XpathMessageValidationContext.Builder.expression(String, String) | XPath | |
XmlValidationContextBuilder | XmlMessageValidationContext.XmlValidationContextBuilder.ignore(String) | XPath | |
AssertSoapFault.Builder | AssertSoapFault.Builder.faultDetail(String) | XML | In citrus-ws package. |
SeleniumActionBuilder | SeleniumActionBuilder.javascript(String) | JavaScript | In citrus-selenium package. |
JavaScriptAction.Builder | JavaScriptAction.Builder.script(String) | JavaScript | In citrus-selenium package. |
Property values in citrus-application.properties
These injections are enabled by default, and can be disabled under IDE Settings > Languages & Frameworks > Citric (Citrus).
Property | Injected Language |
---|---|
citrus.groovy.file.name.pattern | Regexp |
citrus.yaml.file.name.pattern | Regexp |
citrus.xml.file.name.pattern | Regexp |
citrus.java.file.name.pattern | Regexp |
XML DSLs
These are all enabled by default, and can be disabled individually under IDE Settings > Editor > Language Injections.
Location | Injected Language |
---|---|
transform.source | XML |
transform.xslt | XML |
transform.xml-data | XML |
transform.xslt-data | XML |
Cucumber step@given/when/then | Regexp |
selenium.fill-form.json | JSON |
template.groovy | Groovy |
actions.send/receive.message.builder | Groovy |
variables/create-variables.variable.value.script | Groovy |
message/sql.validate.script | Groovy |
sql.validate-script | Groovy |
Kubernetes validate.element@path | JSONPath |
message.expression@path | JSONPath |
message.validate.json-path@expression | JSONPath |
Zookeeper info.validate.json-path@expression | JSONPath |
receive.validate.xpath@expression | XPath |
receive.message.validate.xpath@expression | XPath |
Selenium javascript.script | JavaScript |