PropertyDeclarationShouldContext
Context receiver for writing declarative assertions on a PropertyDeclarationContext element. Provides easy access to all element properties and custom helper assertions.
Properties
Filter or assertion criteria for all properties.
Filter or assertion criteria for annotations.
Filter or assertion criteria for declaration.
Filter or assertion criteria for element.
Filter or assertion criteria for is extension.
Filter or assertion criteria for module path.
Filter or assertion criteria for package name.
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 property is decorated with all of the specified annotations.
Asserts that this property is decorated with the specified annotation.
Asserts that this property is decorated with at least one of the specified annotations.
Checks if this property is decorated with all of the specified annotations.
Checks if this property is decorated with the specified annotation.
Checks if this property is decorated with any of the specified annotations.