ClassDeclarationShouldContext
Context receiver for writing declarative assertions on a ClassDeclaration element. Provides easy access to all element properties and custom helper assertions.
Properties
The complete list of class declarations in this test run scope.
The target ClassDeclaration being verified.
Mutable collection where assertion failure messages are appended.
Functions
Appends a custom violation failure message to the assertion run.
Asserts that this class is decorated with all of the specified annotations.
Asserts that this class is decorated with the specified annotation.
Asserts that this class is decorated with at least one of the specified annotations.
Checks if this class is annotated with all of the given annotation names.
Checks if this class is annotated with the given annotation name or fully qualified name.
Checks if this class is annotated with any of the given annotation names.