Test Actions
General
NOTES: action specific language injections can be found in the language injections document.
Mandatory builder class calls
Certain action Builder classes have properties that if are unset, i.e. no Builder method is called to set that property, the action would not execute. This inspection can recognize such calls.
It can report both individual missing calls, and multiple calls if two or more are required to be missing to cause the action execution to fail.
The following are analyzed:
- Missing
message()
inEchoAction.Builder.echo()/print()
chains. - Missing
filePath()
inLoadPropertiesAction.Builder.load()
chains. - Missing
endpoint()
inReceiveTimeoutAction.Builder.expectTimeout()
chains. - Missing pair of
source()
andsourceFile()
, or missing pair ofxslt()
andxsltFile()
inTransformAction.Builder.transform()
chains.

InputAction
InputAction.Builder#answers
with no answer specified
The InputAction.Builder#answers()
method requires at least one argument to be specified, otherwise it throws an exception. Thus, this inspection reports such calls.

JavaAction
Class references for java(String)
and className(String)
To make the navigation to specified classes easier, fully qualified classnames in java(String)
and className(String)
have class references attached, so that Ctrl+click and similar actions can be used on them.

Assert
Throwable class reference for exception(String)
The method Action.Builder#exception()
has an overload with a String argument that accepts fully qualified names of Java Throwable
implementations.
In order to make the work with this String argument simpler, a reference is attached to it, so that it is easier to navigate to the class when needed, with Ctrl+click.
Exception validation
This inspection reports various issues with configuration of exceptions:
- when the fully qualified name specified in
exception(String)
is not an implementation ofjava.lang.Throwable
.
