Package spock.lang
Annotation Type Verify
Indicates that the code blocks of the annotated methods
may contain conditions, allowing to omit the
assert
keyword.
As in expect-blocks and then-blocks, variable declarations
and void method invocations will not be considered conditions.
The method can be defined in the Specification
class or in a separate Groovy class.
The method must have a void
return type.
A test calling the method will fail on the first failing assertion.- Since:
- 2.4