ClassDeclarationShouldContext
Context receiver for writing declarative assertions on a ClassDeclaration element. Provides easy access to all element properties and custom helper assertions.
Properties
Filter or assertion criteria for all classes.
Filter or assertion criteria for annotations.
Filter or assertion criteria for companion object.
Filter or assertion criteria for element.
Filter or assertion criteria for functions.
Filter or assertion criteria for is abstract.
Filter or assertion criteria for is interface.
Filter or assertion criteria for package name.
Filter or assertion criteria for primary constructor.
Filter or assertion criteria for properties.
Filter or assertion criteria for referenced types.
Filter or assertion criteria for secondary constructors.
Filter or assertion criteria for supertypes.
Filter or assertion criteria for violations.
Filter or assertion criteria for visibility.
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.